public class LifecycleCallbackHandler extends PrimitiveHandler
HANDLER_TYPE
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid
Constructor and Description |
---|
LifecycleCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Configure the handler.
|
void |
start()
Start the handler.
|
void |
stateChanged(int state)
When the state change call the associated callback.
|
void |
stop()
Stop the handler.
|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory
debug, error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warn
public void configure(org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary configuration) throws ConfigurationException
configure
in class Handler
metadata
- : the component type metadataconfiguration
- : the instance configurationConfigurationException
- : one callback metadata is not correct (either the transition or the method are not correct).Handler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)
public void start()
start
in class Handler
Handler.start()
public void stop()
stop
in class Handler
Handler.stop()
public void stateChanged(int state)
stateChanged
in class Handler
state
- : the new instance state.Handler.stateChanged(int)
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.