|
||||||||||
| 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. |
protected static int |
VALIDATE
Invalid to Valid transition. |
| Constructor Summary | |
|---|---|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
MethodMetadata method)
LifecycleCallback constructor. |
|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
String method)
LifecycleCallback constructor. |
|
| Method Summary | |
|---|---|
protected void |
call()
Call the callback method when the transition from inital tostate is detected. |
protected 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
| 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,
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 NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
NoSuchMethodException - : Method is not found in the class
InvocationTargetException - : The method is not static
IllegalAccessException - : The method can not be invokedprotected int getTransition()
protected String getMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||