public class Activator
extends org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureGlobalInstance(org.apache.felix.dm.Component c,
Object imp)
Configure the dependency for a given instance Global
|
void |
configureInstance(org.apache.felix.dm.Component c,
Object imp,
String containerName)
Function that is called when configuration of the dependencies is
required.
|
void |
destroy()
Function called when the activator stops just before the cleanup done by
ComponentActivatorAbstractBase
|
protected Object[] |
getGlobalImplementations()
Method which tells how many Global implementations are supported by the
bundle.
|
Object[] |
getImplementations()
Function that is used to communicate to dependency manager the list of
known implementations for services inside a container
|
void |
init()
Function called when the activator starts just after some initializations
are done by the ComponentActivatorAbstractBase.
|
public void init()
init in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBasepublic void destroy()
destroy in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBasepublic Object[] getImplementations()
getImplementations in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBasepublic void configureInstance(org.apache.felix.dm.Component c,
Object imp,
String containerName)
configureInstance in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBasec - dependency manager Component object, used for configuring the
dependencies exported and importedimp - Implementation class that is being configured, needed as long
as the same routine can configure multiple implementationscontainerName - The containerName being configured, this allow also optional
per-container different behavior if needed, usually should not
be the case though.protected Object[] getGlobalImplementations()
getGlobalImplementations in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBaseprotected void configureGlobalInstance(org.apache.felix.dm.Component c,
Object imp)
configureGlobalInstance in class org.opendaylight.controller.sal.core.ComponentActivatorAbstractBasec - Component assigned for this instance, this will be what will
be used for configurationimp - implementation to be configuredcontainerName - container on which the configuration happensCopyright © 2014. All Rights Reserved.