Interface ObjectRegistration<T>
-
- Type Parameters:
T
- Type of registered object
- All Superinterfaces:
AutoCloseable
,Registration
- All Known Subinterfaces:
ListenerRegistration<T>
,SchemaListenerRegistration
,SchemaSourceRegistration<T>
,YangTextSchemaSourceRegistration
- All Known Implementing Classes:
AbstractListenerRegistration
,AbstractObjectRegistration
,AbstractSchemaListenerRegistration
,AbstractSchemaSourceRegistration
,AbstractYangTextSchemaSourceRegistration
,NoOpListenerRegistration
,NoOpObjectRegistration
public interface ObjectRegistration<T> extends Registration
Class representing a registration of an object. Such a registration is a proper resource and should be cleaned up when no longer required, so references to the object can be removed. This mechanism lies above the usual Java reference mechanism, as the entity where the object is registered may reside outside of the Java Virtual Machine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull T
getInstance()
Return the object instance.-
Methods inherited from interface org.opendaylight.yangtools.concepts.Registration
close
-
-
-
-
Method Detail
-
getInstance
@NonNull T getInstance()
Return the object instance.- Returns:
- Registered object.
-
-