Package org.apache.openjpa.event
Interface LifecycleCallbacks
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
BeanLifecycleCallbacks
,MethodLifecycleCallbacks
public interface LifecycleCallbacks extends java.io.Serializable
A lifecycle listener that responds to callbacks rather than events.- Author:
- Steve Kim
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 related, int eventType)
Invoke the callback for the given event type on the given instance.
-
-
-
Method Detail
-
hasCallback
boolean hasCallback(java.lang.Object obj, int eventType)
Return whether the given instance has a callback for the given event type.
-
makeCallback
void makeCallback(java.lang.Object obj, java.lang.Object related, int eventType) throws java.lang.Exception
Invoke the callback for the given event type on the given instance.- Throws:
java.lang.Exception
-
-