import org.opendaylight.controller.samples.loadbalancer.IConfigManager;
/**
- * Main application activator class for registering the dependencies and
+ * Main application activator class for registering the dependencies and
* initialising the load balancer application.
*
*/
public class Activator extends ComponentActivatorAbstractBase {
-
+
/*
* Logger instance
*/
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
props.put("salListenerName", "loadbalancer");
c.setInterface(new String[] { IListenDataPacket.class.getName(),
- IConfigManager.class.getName()}, props);
+ IConfigManager.class.getName()}, props);
c.add(createContainerServiceDependency(containerName).setService(
IDataPacketService.class).setCallbacks(
"setDataPacketService", "unsetDataPacketService")
.setRequired(true));
-
+
c.add(createContainerServiceDependency(containerName).setService(
IRouting.class).setCallbacks("setRouting", "unsetRouting")
.setRequired(false));