2 * Copyright (c) 2019 Pantheon Technologies, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.concepts;
10 import com.google.common.annotations.Beta;
13 * An extension to a concrete {@link ExtensibleObject}. This is a marker interface to introduce type safety and unlike
14 * full Extensible Objects, does not specify how extensions are attached to an extensible object.
17 * {@link ObjectExtension} instances are attached to their host object and share its state, which means they work in
18 * concert and care must be taken to ensure consistency, such as thread safety and observable effects.
20 * @param <T> Extensible object type
21 * @param <E> Extension type
22 * @author Robert Varga
25 public interface ObjectExtension<T extends ExtensibleObject<T, E>, E extends ObjectExtension<T, E>> {