import org.opendaylight.controller.sal.core.IContainer;
import org.opendaylight.controller.sal.core.IContainerAware;
import org.opendaylight.controller.sal.core.IContainerListener;
+import org.opendaylight.controller.sal.core.IContainerLocalListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
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
.setService(IContainerListener.class)
.setCallbacks("setIContainerListener", "unsetIContainerListener")
.setRequired(false));
+
+ // Interface expected to be exported by the Functional Modules
+ c.add(createServiceDependency()
+ .setService(IContainerLocalListener.class)
+ .setCallbacks("setIContainerLocalListener", "unsetIContainerLocalListener")
+ .setRequired(false));
}
}
}