|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback
public class LifecycleCallback
This class is the implementation of callback on lifecycle transition.
| Field Summary | |
|---|---|
protected static int |
INVALIDATE
Valid to Invalid transition. |
private Callback |
m_callback
Callback object. |
private int |
m_transition
Transition on which calling the callback. |
protected static int |
VALIDATE
Invalid to Valid transition. |
| Constructor Summary | |
|---|---|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
MethodMetadata method)
LifecycleCallback constructor. |
|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
java.lang.String method)
LifecycleCallback constructor. |
|
| Method Summary | |
|---|---|
protected void |
call()
Call the callback method when the transition from inital tostate is detected. |
protected java.lang.String |
getMethod()
Get the method name of the callback. |
protected int |
getTransition()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int VALIDATE
protected static final int INVALIDATE
private int m_transition
private Callback m_callback
| Constructor Detail |
|---|
public LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
MethodMetadata method)
handler - : the callback handler calling the callbacktransition - : transition on which calling the callbackmethod - : method metadata to invoke
public LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
java.lang.String method)
handler - : the callback handler calling the callbacktransition - : transition on which calling the callbackmethod - : method name to invoke| Method Detail |
|---|
protected void call()
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException - : Method is not found in the class
java.lang.reflect.InvocationTargetException - : The method is not static
java.lang.IllegalAccessException - : The method can not be invokedprotected int getTransition()
protected java.lang.String getMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||