Package org.apache.openjpa.event
Class BeanLifecycleCallbacks
- java.lang.Object
 - 
- org.apache.openjpa.event.MethodLifecycleCallbacks
 - 
- org.apache.openjpa.event.BeanLifecycleCallbacks
 
 
 
- 
- All Implemented Interfaces:
 Externalizable,Serializable,LifecycleCallbacks
public class BeanLifecycleCallbacks extends MethodLifecycleCallbacks
Performs a callback method on a cached bean instance.- Author:
 - Steve Kim
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BeanLifecycleCallbacks(Class<?> cls, Method method, boolean arg)Constructor.BeanLifecycleCallbacks(Class<?> cls, String method, boolean arg, Class<?> type)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmakeCallback(Object obj, Object rel, int eventType)Invoke the callback for the given event type on the given instance.voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)- 
Methods inherited from class org.apache.openjpa.event.MethodLifecycleCallbacks
getCallbackMethod, getMethod, hasCallback, requiresArgument, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
makeCallback
public void makeCallback(Object obj, Object rel, int eventType) throws Exception
Description copied from interface:LifecycleCallbacksInvoke the callback for the given event type on the given instance.- Specified by:
 makeCallbackin interfaceLifecycleCallbacks- Overrides:
 makeCallbackin classMethodLifecycleCallbacks- Throws:
 Exception
 
- 
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
 readExternalin interfaceExternalizable- Overrides:
 readExternalin classMethodLifecycleCallbacks- Throws:
 IOExceptionClassNotFoundException
 
- 
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
 writeExternalin interfaceExternalizable- Overrides:
 writeExternalin classMethodLifecycleCallbacks- Throws:
 IOException
 
 - 
 
 -