public class LifecycleCallback
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
INVALIDATE
Valid to Invalid transition.
|
protected static int |
VALIDATE
Invalid to Valid transition.
|
Constructor and Description |
---|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
MethodMetadata method)
LifecycleCallback constructor.
|
LifecycleCallback(LifecycleCallbackHandler handler,
int transition,
java.lang.String method)
LifecycleCallback constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected static final int VALIDATE
protected static final int INVALIDATE
public LifecycleCallback(LifecycleCallbackHandler handler, int transition, MethodMetadata method)
handler
- : the callback handler calling the callbacktransition
- : transition on which calling the callbackmethod
- : method metadata to invokepublic 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 invokeprotected void call() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
- : Method is not found in the classjava.lang.reflect.InvocationTargetException
- : The method is not staticjava.lang.IllegalAccessException
- : The method can not be invokedprotected int getTransition()
protected java.lang.String getMethod()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.