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
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:
makeCallback
in interface LifecycleCallbacks
- Overrides:
makeCallback
in class MethodLifecycleCallbacks
- Throws:
Exception
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class MethodLifecycleCallbacks
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class MethodLifecycleCallbacks
- Throws:
IOException
Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.