X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2FModuleInternalInfo.java;h=941aec10969fd90c700d257579b02c88520e40e9;hb=efa5be8f930f3eda7094c314e22347868b9db173;hp=c675db5bff87d9c3b88bd109c68687454cfc559a;hpb=0641db636be750bf98e85c702c4948c7c835b9b6;p=controller.git diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/ModuleInternalInfo.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/ModuleInternalInfo.java index c675db5bff..941aec1096 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/ModuleInternalInfo.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/ModuleInternalInfo.java @@ -35,12 +35,14 @@ public class ModuleInternalInfo implements Comparable, private final OsgiRegistration osgiRegistration; private final ModuleJMXRegistrator moduleJMXRegistrator; private final int orderingIdx; + private final boolean isDefaultBean; public ModuleInternalInfo(ModuleIdentifier name, @Nullable DynamicReadableWrapper readableModule, OsgiRegistration osgiRegistration, RootRuntimeBeanRegistratorImpl runtimeBeanRegistrator, - ModuleJMXRegistrator moduleJMXRegistrator, int orderingIdx) { + ModuleJMXRegistrator moduleJMXRegistrator, int orderingIdx, + boolean isDefaultBean) { if (osgiRegistration == null) { throw new IllegalArgumentException( @@ -56,6 +58,7 @@ public class ModuleInternalInfo implements Comparable, this.name = name; this.moduleJMXRegistrator = moduleJMXRegistrator; this.orderingIdx = orderingIdx; + this.isDefaultBean = isDefaultBean; } public DynamicReadableWrapper getReadableModule() { @@ -87,11 +90,6 @@ public class ModuleInternalInfo implements Comparable, return osgiRegistration; } - @Deprecated - public ModuleIdentifier getName() { - return name; - } - /** * Get index representing dependency ordering within a transaction. */ @@ -108,7 +106,7 @@ public class ModuleInternalInfo implements Comparable, } public DestroyedModule toDestroyedModule() { - return new DestroyedModule(getName(), + return new DestroyedModule(getIdentifier(), getReadableModule().getInstance(), getModuleJMXRegistrator(), getOsgiRegistration(), getOrderingIdx()); } @@ -117,4 +115,8 @@ public class ModuleInternalInfo implements Comparable, public ModuleIdentifier getIdentifier() { return name; } + + public boolean isDefaultBean() { + return isDefaultBean; + } }