X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fclustering%2Fservices_implementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fservices_implementation%2Finternal%2FActivator.java;h=35b51466795c060c0dfc0112ea8826917edda2ce;hp=cb96ad5c8ece76fab65b518f9ddea8eb4b67c374;hb=5ea1d65aee8571ebaaff4f8b30065816873f018e;hpb=84ca16196357ad899e00eceae27ef75eaf899d14 diff --git a/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/Activator.java b/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/Activator.java index cb96ad5c8e..35b5146679 100644 --- a/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/Activator.java +++ b/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/Activator.java @@ -10,6 +10,7 @@ package org.opendaylight.controller.clustering.services_implementation.internal; import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase; +import org.opendaylight.controller.sal.core.IContainerAware; import org.opendaylight.controller.clustering.services.ICacheUpdateAware; import org.opendaylight.controller.clustering.services.IClusterContainerServices; @@ -24,22 +25,7 @@ public class Activator extends ComponentActivatorAbstractBase { protected static final Logger logger = LoggerFactory .getLogger(Activator.class); - /** - * Function called when the activator starts just after some - * initializations are done by the - * ComponentActivatorAbstractBase. - * - */ - public void init() { - } - /** - * Function called when the activator stops just before the - * cleanup done by ComponentActivatorAbstractBase - * - */ - public void destroy() { - } /** * Function that is used to communicate to dependency manager the @@ -50,8 +36,9 @@ public class Activator extends ComponentActivatorAbstractBase { * instantiated in order to get an fully working implementation * Object */ + @Override public Object[] getGlobalImplementations() { - Object[] res = { ClusterManager.class, ClusterGlobalManager.class }; + Object[] res = { ClusterManager.class, ClusterGlobalManager.class, ClusterManagerCLI.class }; return res; } @@ -64,6 +51,7 @@ public class Activator extends ComponentActivatorAbstractBase { * instantiated in order to get an fully working implementation * Object */ + @Override public Object[] getImplementations() { Object[] res = { ClusterContainerManager.class }; return res; @@ -82,6 +70,7 @@ public class Activator extends ComponentActivatorAbstractBase { * also optional per-container different behavior if needed, usually * should not be the case though. */ + @Override public void configureInstance(Component c, Object imp, String containerName) { if (imp.equals(ClusterContainerManager.class)) { c.setInterface(new String[] { IClusterContainerServices.class.getName() }, @@ -118,10 +107,11 @@ public class Activator extends ComponentActivatorAbstractBase { * needed as long as the same routine can configure multiple * implementations */ + @Override public void configureGlobalInstance(Component c, Object imp) { if (imp.equals(ClusterManager.class)) { // export the service for Apps and Plugins - c.setInterface(new String[] { IClusterServices.class.getName() }, null); + c.setInterface(new String[] { IClusterServices.class.getName(), IContainerAware.class.getName() }, null); } if (imp.equals(ClusterGlobalManager.class)) {