Fix Decima64.valueOf(String)
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / ObjectRegistration.java
index f2eafef209c0a60a4732ef7bc806231d82b20ff2..124ea438ce280e9c363f13a59399852860aed25d 100644 (file)
@@ -7,14 +7,14 @@
  */
 package org.opendaylight.yangtools.concepts;
 
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
- * 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 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.
+ *
+ * @param <T> Type of registered object
  */
 public interface ObjectRegistration<T> extends Registration {
     /**
@@ -22,15 +22,5 @@ public interface ObjectRegistration<T> extends Registration {
      *
      * @return Registered object.
      */
-    @Nonnull T getInstance();
-
-    /**
-     * Unregisters the object. This operation is required not to invoke
-     * blocking operations. Implementations which require interaction
-     * with outside world must provide guarantees that any work is done
-     * behind the scenes and the unregistration process looks as if it
-     * has already succeeded once this method returns.
-     */
-    @Override
-    void close() throws Exception;
+    @NonNull T getInstance();
 }