Introduce WritableObject/WritableIdentifier
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / Registration.java
index 8b2631f7531bd4ffae50d1b6c5734d7e6f0b1223..43635f4f7a0123a599b320e0e111a602bedf4303 100644 (file)
@@ -8,28 +8,10 @@
 package org.opendaylight.yangtools.concepts;
 
 /**
- * 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.
+ * Class representing a registration. Such a registration is a proper
+ * resource and should be cleaned up when no longer required.
  */
-public interface Registration<T> extends AutoCloseable {
-    /**
-     * Return the object instance.
-     *
-     * @return Registered object.
-     *
-     * @deprecated This class is currently deprecated pending its rework for
-     *             general-purpose registration. This rework will remove the
-     *             getInstance() method, such that the registration is no
-     *             longer tied to a particular object. Please use
-     *             {@link ObjectRegistration} to ensure your code does not
-     *             break when that happens.
-     */
-    @Deprecated
-    T getInstance();
-
+public interface Registration extends AutoCloseable {
     /**
      * Unregisters the object. This operation is required not to invoke
      * blocking operations. Implementations which require interaction