org.apache.openjpa.event
Class BeanLifecycleCallbacks
java.lang.Object
   org.apache.openjpa.event.MethodLifecycleCallbacks
org.apache.openjpa.event.MethodLifecycleCallbacks
       org.apache.openjpa.event.BeanLifecycleCallbacks
org.apache.openjpa.event.BeanLifecycleCallbacks
- All Implemented Interfaces: 
- java.io.Externalizable, java.io.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 | 
| BeanLifecycleCallbacks(java.lang.Class cls,
                       java.lang.reflect.Method method,
                       boolean arg)Constructor.
 | 
| BeanLifecycleCallbacks(java.lang.Class cls,
                       java.lang.String method,
                       boolean arg,
                       java.lang.Class type)Constructor.
 | 
 
| Method Summary | 
|  void | makeCallback(java.lang.Object obj,
             java.lang.Object rel,
             int eventType)Invoke the callback for the given event type on the given instance.
 | 
|  void | readExternal(java.io.ObjectInput in)
 | 
|  void | writeExternal(java.io.ObjectOutput out)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
BeanLifecycleCallbacks
public BeanLifecycleCallbacks(java.lang.Class cls,
                              java.lang.String method,
                              boolean arg,
                              java.lang.Class type)
- Constructor. Make the callback on an instance of the given type.
 
BeanLifecycleCallbacks
public BeanLifecycleCallbacks(java.lang.Class cls,
                              java.lang.reflect.Method method,
                              boolean arg)
- Constructor. Make the callback on an instance of the given type.
 
makeCallback
public void makeCallback(java.lang.Object obj,
                         java.lang.Object rel,
                         int eventType)
                  throws java.lang.Exception
- Description copied from interface: LifecycleCallbacks
- Invoke the callback for the given event type on the given instance.
 
- 
- Specified by:
- makeCallbackin interface- LifecycleCallbacks
- Overrides:
- makeCallbackin class- MethodLifecycleCallbacks
 
- 
- Throws:
- java.lang.Exception
 
readExternal
public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
- 
- Specified by:
- readExternalin interface- java.io.Externalizable
- Overrides:
- readExternalin class- MethodLifecycleCallbacks
 
- 
- Throws:
- java.io.IOException
- java.lang.ClassNotFoundException
 
writeExternal
public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
- 
- Specified by:
- writeExternalin interface- java.io.Externalizable
- Overrides:
- writeExternalin class- MethodLifecycleCallbacks
 
- 
- Throws:
- java.io.IOException
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.