use of org.opendaylight.controller.config.spi.AbstractModule in project controller by opendaylight.
the class ConfigTransactionControllerImpl method reCreateModule.
@Override
public synchronized void reCreateModule(final ObjectName objectName) throws InstanceNotFoundException {
transactionStatus.checkNotCommitStarted();
transactionStatus.checkNotAborted();
checkTransactionName(objectName);
ObjectNameUtil.checkDomain(objectName);
ModuleIdentifier moduleIdentifier = ObjectNameUtil.fromON(objectName, ObjectNameUtil.TYPE_MODULE);
ModuleInternalTransactionalInfo txInfo = dependencyResolverManager.findModuleInternalTransactionalInfo(moduleIdentifier);
Module realModule = txInfo.getRealModule();
if (realModule instanceof AbstractModule) {
((AbstractModule<?>) realModule).setCanReuseInstance(false);
}
}
Aggregations