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
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
Methods inherited from interface org.opendaylight.yangtools.concepts.Registration
close
-
Method Details
-
getInstance
@NonNull T getInstance()Return the object instance.- Returns:
- Registered object.
-