Class AbstractObjectRegistration<T>
java.lang.Object
org.opendaylight.yangtools.concepts.AbstractRegistration
org.opendaylight.yangtools.concepts.AbstractObjectRegistration<T>
- All Implemented Interfaces:
AutoCloseable,ObjectRegistration<T>,Registration
- Direct Known Subclasses:
AbstractListenerRegistration
public abstract class AbstractObjectRegistration<T>
extends AbstractRegistration
implements ObjectRegistration<T>
Utility registration handle. It is a convenience for register-style method which can return an AutoCloseable realized
by a subclass of this class. Invoking the close() method triggers unregistration of the state the method installed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) final TReturn the object instance.Methods inherited from class org.opendaylight.yangtools.concepts.AbstractRegistration
close, isClosed, notClosed, removeRegistration, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.yangtools.concepts.Registration
close
-
Constructor Details
-
AbstractObjectRegistration
-
-
Method Details
-
getInstance
Description copied from interface:ObjectRegistrationReturn the object instance.- Specified by:
getInstancein interfaceObjectRegistration<T>- Returns:
- Registered object.
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) - Overrides:
addToStringAttributesin classAbstractRegistration
-