|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.event.MethodLifecycleCallbacks
public class MethodLifecycleCallbacks
Callback adapter that invokes a callback method via reflection.
Constructor Summary | |
---|---|
MethodLifecycleCallbacks(Class cls,
String method,
boolean arg)
Constructor. |
|
MethodLifecycleCallbacks(Method method,
boolean arg)
Constructor. |
Method Summary | |
---|---|
Method |
getCallbackMethod()
The callback method. |
protected static Method |
getMethod(Class cls,
String method,
Class[] args)
Helper method to return the named method of the given class, throwing the proper exception on error. |
boolean |
hasCallback(Object obj,
int eventType)
Return whether the given instance has a callback for the given event type. |
void |
makeCallback(Object obj,
Object arg,
int eventType)
Invoke the callback for the given event type on the given instance. |
void |
readExternal(ObjectInput in)
|
boolean |
requiresArgument()
Returns if this callback expects another argument |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodLifecycleCallbacks(Class cls, String method, boolean arg)
public MethodLifecycleCallbacks(Method method, boolean arg)
Method Detail |
---|
public Method getCallbackMethod()
public boolean requiresArgument()
public boolean hasCallback(Object obj, int eventType)
LifecycleCallbacks
hasCallback
in interface LifecycleCallbacks
public void makeCallback(Object obj, Object arg, int eventType) throws Exception
LifecycleCallbacks
makeCallback
in interface LifecycleCallbacks
Exception
public String toString()
toString
in class Object
protected static Method getMethod(Class cls, String method, Class[] args)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.