X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FComponentActivatorAbstractBase.java;h=439e7807d4f52894244ceac0978a8972c5b6850e;hp=039acf52e698945d6ec9275db7eb87dee1571d46;hb=5ea1d65aee8571ebaaff4f8b30065816873f018e;hpb=9df6a568d91b34f4c1cf9c62dc0670adbdcefc15 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java index 039acf52e6..439e7807d4 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ComponentActivatorAbstractBase.java @@ -49,18 +49,20 @@ abstract public class ComponentActivatorAbstractBase implements private ConcurrentMap dbGlobalInstances = (ConcurrentMap) new ConcurrentHashMap(); /** - * Abstract method that MUST be implemented by the derived class - * that wants to activate the Component bundle in a container. Here - * customization for the component are expected + * Method that should be overriden by the derived class for customization + * during activation of the Component bundle in a container. */ - abstract protected void init(); + protected void init() { + + } /** - * Abstract method that MUST be implemented by the derived class - * that wants to DE-activate the Component bundle in a container. Here - * customization for the component are expected + * Method that should be overriden by the derived class for customization + * during DE-activation of the Component bundle in a container. */ - abstract protected void destroy(); + public void destroy() { + + } /** * Method which tells how many implementations are supported by @@ -152,6 +154,11 @@ abstract public class ComponentActivatorAbstractBase implements @Override public void stopped(Component component) { + // do nothing + } + + @Override + public void stopping(Component component) { if (component == null) { return; } @@ -160,11 +167,6 @@ abstract public class ComponentActivatorAbstractBase implements { Component.class }, {} }, new Object[][] { { component }, {} }); } - - @Override - public void stopping(Component component) { - // do nothing - } } /** @@ -354,7 +356,7 @@ abstract public class ComponentActivatorAbstractBase implements } } } - + // Register with OSGi the provider for the service IContainerAware context.registerService( IContainerAware.class.getName(), this, null);