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()
ObjectRegistration
getInstance
in interface ObjectRegistration<T>
public final void close()
Registration
close
in interface AutoCloseable
close
in interface Registration
Copyright © 2020 OpenDaylight. All rights reserved.