public class MethodLifecycleCallbacks extends java.lang.Object implements LifecycleCallbacks, java.io.Externalizable
| Constructor and Description |
|---|
MethodLifecycleCallbacks(java.lang.Class cls,
java.lang.String method,
boolean arg)
Constructor.
|
MethodLifecycleCallbacks(java.lang.reflect.Method method,
boolean arg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getCallbackMethod()
The callback method.
|
protected static java.lang.reflect.Method |
getMethod(java.lang.Class cls,
java.lang.String method,
java.lang.Class[] args)
Helper method to return the named method of the given class, throwing
the proper exception on error.
|
boolean |
hasCallback(java.lang.Object obj,
int eventType)
Return whether the given instance has a callback for the given
event type.
|
void |
makeCallback(java.lang.Object obj,
java.lang.Object arg,
int eventType)
Invoke the callback for the given event type on the given instance.
|
void |
readExternal(java.io.ObjectInput in) |
boolean |
requiresArgument()
Returns if this callback expects another argument
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
public MethodLifecycleCallbacks(java.lang.Class cls,
java.lang.String method,
boolean arg)
public MethodLifecycleCallbacks(java.lang.reflect.Method method,
boolean arg)
public java.lang.reflect.Method getCallbackMethod()
public boolean requiresArgument()
public boolean hasCallback(java.lang.Object obj,
int eventType)
LifecycleCallbackshasCallback in interface LifecycleCallbackspublic void makeCallback(java.lang.Object obj,
java.lang.Object arg,
int eventType)
throws java.lang.Exception
LifecycleCallbacksmakeCallback in interface LifecycleCallbacksjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected static java.lang.reflect.Method getMethod(java.lang.Class cls,
java.lang.String method,
java.lang.Class[] args)
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.