X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FComponentActivatorAbstractBase.java;h=969aa630a1519f712e24af8ef0e0cd0025022635;hb=43767bb962ade9659c8aa7eb0e02d412a7a54db2;hp=de77837c34a1472249b7fe69cd9ac64d10ba129a;hpb=8d3fef27e61757b37333f619d5a02c02230a9b6d;p=controller.git 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 de77837c34..969aa630a1 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 @@ -199,6 +201,7 @@ abstract public class ComponentActivatorAbstractBase implements //Set the service properties to include the containerName //in the service, that is fundamental for supporting //multiple services just distinguished via a container + @SuppressWarnings("unchecked") Dictionary serviceProps = c .getServiceProperties(); if (serviceProps != null) { @@ -285,7 +288,7 @@ abstract public class ComponentActivatorAbstractBase implements StringBuffer buffer = new StringBuffer(); for (int i = 0; i < stack.length; i++) { - buffer.append("\n\t" + stack[i].toString()); + buffer.append("\n\t").append(stack[i].toString()); } return buffer.toString(); }