public class BundleContextHandler extends PrimitiveHandler
Modifier and Type | Class and Description |
---|---|
private class |
BundleContextHandler.BundleCallback |
Modifier and Type | Field and Description |
---|---|
private List<BundleContextHandler.BundleCallback> |
m_methods |
HANDLER_TYPE
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid
Constructor and Description |
---|
BundleContextHandler() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Element metadata,
Dictionary configuration)
Configures the handler.
|
private BundleContext |
getBundleContextForConfiguration(Element element) |
private BundleContext |
getComponentBundleContext() |
private BundleContext |
getInstanceBundleContext() |
void |
onCreation(Object instance)
Callback method called when an instance of the component is created, but
before someone can use it.
|
void |
start()
Starts the handler
This method starts the management.
|
void |
stop()
Stops the handler
This method stops the management.
|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory
debug, error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn
private List<BundleContextHandler.BundleCallback> m_methods
public BundleContextHandler()
private BundleContext getComponentBundleContext()
private BundleContext getInstanceBundleContext()
public void configure(Element metadata, Dictionary configuration) throws ConfigurationException
configure
in class Handler
metadata
- the metadata of the componentconfiguration
- the instance configurationConfigurationException
- if the metadata are not correct.private BundleContext getBundleContextForConfiguration(Element element) throws ConfigurationException
ConfigurationException
public void stop()
public void start()
public void onCreation(Object instance)
onCreation
in class PrimitiveHandler
instance
- the created instanceCopyright © 2014. All rights reserved.