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
Performs a callback method on a cached bean instance.
- Author:
- Steve Kim
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeanLifecycleCallbacks(Class<?> cls, Method method, boolean arg) Constructor.BeanLifecycleCallbacks(Class<?> cls, String method, boolean arg, Class<?> type) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidmakeCallback(Object obj, Object rel, int eventType) Invoke the callback for the given event type on the given instance.voidvoidMethods inherited from class org.apache.openjpa.event.MethodLifecycleCallbacks
getCallbackMethod, getMethod, hasCallback, requiresArgument, toString
-
Constructor Details
-
BeanLifecycleCallbacks
Constructor. Make the callback on an instance of the given type.- Parameters:
arg- whether another argument is expected such as AfterDetach
-
BeanLifecycleCallbacks
Constructor. Make the callback on an instance of the given type.
-
-
Method Details
-
makeCallback
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
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classMethodLifecycleCallbacks- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classMethodLifecycleCallbacks- Throws:
IOException
-