added implementation of Identifier and Identifiable from yangtools.concepts
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / spi / Module.java
index 01f81a3d56260747d5245bef9b1c8698c2a5a226..ff14841c68463f35abc2ff3b44a7a5c0e9eb6496 100644 (file)
@@ -11,6 +11,7 @@ import javax.annotation.concurrent.NotThreadSafe;
 
 import org.opendaylight.controller.config.api.ModuleIdentifier;
 import org.opendaylight.controller.config.api.annotations.RequireInterface;
+import org.opendaylight.yangtools.concepts.Identifiable;
 
 
 /**
@@ -28,7 +29,7 @@ import org.opendaylight.controller.config.api.annotations.RequireInterface;
  * </p>
  */
 @NotThreadSafe
-public interface Module {
+public interface Module extends Identifiable<ModuleIdentifier>{
     /**
      * This method will be called as first phase in two phase commit. Instance
      * can check attributes, but is not allowed to do any kind of work that
@@ -55,6 +56,4 @@ public interface Module {
      */
     AutoCloseable getInstance();
 
-    ModuleIdentifier getName();
-
 }