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: 
- Externalizable, Serializable, LifecycleCallbacks
- public class BeanLifecycleCallbacks 
- extends MethodLifecycleCallbacks
Performs a callback method on a cached bean instance.
- Author:
- Steve Kim
- See Also:
- Serialized Form
 
 
 
 
BeanLifecycleCallbacks
public BeanLifecycleCallbacks(Class cls,
                              String method,
                              boolean arg,
                              Class type)
- Constructor. Make the callback on an instance of the given type.
 
BeanLifecycleCallbacks
public BeanLifecycleCallbacks(Class cls,
                              Method method,
                              boolean arg)
- Constructor. Make the callback on an instance of the given type.
 
makeCallback
public void makeCallback(Object obj,
                         Object rel,
                         int eventType)
                  throws 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:
- Exception
 
readExternal
public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
- 
- Specified by:
- readExternalin interface- Externalizable
- Overrides:
- readExternalin class- MethodLifecycleCallbacks
 
- 
- Throws:
- IOException
- ClassNotFoundException
 
writeExternal
public void writeExternal(ObjectOutput out)
                   throws IOException
- 
- Specified by:
- writeExternalin interface- Externalizable
- Overrides:
- writeExternalin class- MethodLifecycleCallbacks
 
- 
- Throws:
- IOException
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.