package org.opendaylight.controller.config.manager.impl;
import javax.annotation.Nullable;
-
import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.manager.impl.dependencyresolver.DestroyedModule;
import org.opendaylight.controller.config.manager.impl.dynamicmbean.DynamicReadableWrapper;
public ModuleInternalInfo(ModuleIdentifier name,
@Nullable DynamicReadableWrapper readableModule,
OsgiRegistration osgiRegistration,
- RootRuntimeBeanRegistratorImpl runtimeBeanRegistrator,
+ @Nullable RootRuntimeBeanRegistratorImpl runtimeBeanRegistrator,
ModuleJMXRegistrator moduleJMXRegistrator, int orderingIdx,
boolean isDefaultBean, ModuleFactory moduleFactory, BundleContext bundleContext) {
throw new IllegalArgumentException(
"Parameter 'osgiRegistration' is missing");
}
- if (runtimeBeanRegistrator == null) {
- throw new IllegalArgumentException(
- "Parameter 'runtimeBeanRegistrator' is missing");
- }
this.readableModule = readableModule;
this.osgiRegistration = osgiRegistration;
this.runtimeBeanRegistrator = runtimeBeanRegistrator;
public DestroyedModule toDestroyedModule() {
return new DestroyedModule(getIdentifier(),
getReadableModule().getInstance(), getModuleJMXRegistrator(),
- getOsgiRegistration(), getOrderingIdx());
+ getOsgiRegistration(), getOrderingIdx(), runtimeBeanRegistrator);
}
@Override