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
ConstructorDescriptionBeanLifecycleCallbacks
(Class<?> cls, Method method, boolean arg) Constructor.BeanLifecycleCallbacks
(Class<?> cls, String method, boolean arg, Class<?> type) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
makeCallback
(Object obj, Object rel, int eventType) Invoke the callback for the given event type on the given instance.void
void
Methods 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:LifecycleCallbacks
Invoke the callback for the given event type on the given instance.- Specified by:
makeCallback
in interfaceLifecycleCallbacks
- Overrides:
makeCallback
in classMethodLifecycleCallbacks
- Throws:
Exception
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classMethodLifecycleCallbacks
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classMethodLifecycleCallbacks
- Throws:
IOException
-