T - Type of registered object@Beta @NonNullByDefault public class NoOpObjectRegistration<T> extends Object implements Immutable, ObjectRegistration<T>
ObjectRegistration which does nothing in its close() method.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unregisters the object.
|
T |
getInstance()
Return the object instance.
|
static <T> ObjectRegistration<T> |
of(T instance) |
String |
toString() |
public static <T> ObjectRegistration<T> of(T instance)
public final T getInstance()
ObjectRegistrationgetInstance in interface ObjectRegistration<T>public final void close()
Registrationclose in interface AutoCloseableclose in interface RegistrationCopyright © 2019 OpenDaylight. All rights reserved.