|
||||||||||
| 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 | |
|---|---|
private LifecycleCallback[] |
m_callbacks
The list of the callback of the component. |
private boolean |
m_immediate
Does a POJO object be created at starting. |
private int |
m_state
State of the instance manager (unresolved at the beginning). |
| 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 | |
|---|---|
private void |
addCallback(LifecycleCallback callback)
Add the given callback to the callback list. |
void |
configure(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, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
| Methods inherited from class org.apache.felix.ipojo.Handler |
|---|
debug, 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 |
| Field Detail |
|---|
private LifecycleCallback[] m_callbacks
private int m_state
private boolean m_immediate
| Constructor Detail |
|---|
public LifecycleCallbackHandler()
| Method Detail |
|---|
private void addCallback(LifecycleCallback callback)
callback - : the element to add
public void configure(Element metadata,
java.util.Dictionary configuration)
throws ConfigurationException
configure in class Handlermetadata - : 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 HandlerHandler.start()public void stop()
stop in class HandlerHandler.stop()public void stateChanged(int state)
stateChanged in class Handlerstate - : the new instance state.Handler.stateChanged(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||