X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fhosttracker%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2Finternal%2FActivator.java;h=7e527712b1058b756ad743896f94a5447b65a61b;hp=3af9826b7e38efe8306a452f0ca2406a6e7d1698;hb=a22e44963c31452b6ea17745b652456b8b991101;hpb=4b863003a7ba2da0df528f806471262d0c800a09 diff --git a/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java b/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java index 3af9826b7e..7e527712b1 100644 --- a/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java +++ b/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java @@ -16,6 +16,7 @@ import java.util.Set; import org.apache.felix.dm.Component; import org.opendaylight.controller.clustering.services.ICacheUpdateAware; import org.opendaylight.controller.clustering.services.IClusterContainerServices; +import org.opendaylight.controller.hosttracker.IHostTrackerShell; import org.opendaylight.controller.hosttracker.IfHostListener; import org.opendaylight.controller.hosttracker.IfIptoHost; import org.opendaylight.controller.hosttracker.IfNewHostNotify; @@ -33,23 +34,6 @@ 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. - * - */ - @Override - public void init() { - } - - /** - * Function called when the activator stops just before the cleanup done by - * ComponentActivatorAbstractBase - * - */ - @Override - public void destroy() { - } /** * Function that is used to communicate to dependency manager the list of @@ -95,13 +79,14 @@ public class Activator extends ComponentActivatorAbstractBase { IInventoryListener.class.getName(), IfIptoHost.class.getName(), IfHostListener.class.getName(), + IHostTrackerShell.class.getName(), ITopologyManagerAware.class.getName(), ICacheUpdateAware.class.getName() }, props); c.add(createContainerServiceDependency(containerName) .setService(ISwitchManager.class) .setCallbacks("setSwitchManager", "unsetSwitchManager") - .setRequired(false)); + .setRequired(true)); c.add(createContainerServiceDependency(containerName) .setService(IClusterContainerServices.class) .setCallbacks("setClusterContainerService",