1 package org.opendaylight.yangtools.concepts;
\r
4 * Utility registration handle. It is a convenience for register-style method
\r
5 * which can return an AutoCloseable realized by a subclass of this class.
\r
6 * Invoking the close() method triggers unregistration of the state the method
\r
9 public abstract class AbstractObjectRegistration<T> extends AbstractRegistration implements Registration<T> {
\r
12 private final T instance;
\r
14 public AbstractObjectRegistration(T instance) {
\r
15 this.instance = instance;
\r
19 public final T getInstance() {
\r