Add config system API to recreate a module instance
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / ConfigTransactionController.java
index 8afc80a4f36971edbf1bd562e68dd684506ff7ad..bd9002c62487d2c5506599ec35219278527b9377 100644 (file)
@@ -29,6 +29,20 @@ public interface ConfigTransactionController extends LookupRegistry, ServiceRefe
     ObjectName createModule(String moduleName, String instanceName)
             throws InstanceAlreadyExistsException;
 
+    /**
+     * Re-creates an existing module configuration bean.
+     *
+     * @param objectName
+     *            can be either read-only module name that can be obtained using
+     *            {@link ConfigRegistry#lookupConfigBean(String, String)} or
+     *            writable module name that must contain current transaction name.
+     * @throws InstanceNotFoundException
+     *             if module is not found
+     * @throws IllegalArgumentException
+     *             if object name contains wrong transaction name or domain
+     */
+    void reCreateModule(ObjectName objectName) throws InstanceNotFoundException;
+
     /**
      * Destroy existing module.
      *