|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler
public class LifecycleCallbackHandler
Lifecycle callback handler.
Field Summary |
---|
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
HANDLER_TYPE |
Fields inherited from class org.apache.felix.ipojo.Handler |
---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
Constructor Summary | |
---|---|
LifecycleCallbackHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getMetadata, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleCallbackHandler()
Method Detail |
---|
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 configuration
ConfigurationException
- : one callback metadata is not correct (either the transition or the method are not correct).org.apache.felix.ipojo.Handler#configure(org.apache.felix.ipojo.InstanceManager, 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |