public class BeanLifecycleCallbacks extends MethodLifecycleCallbacks
Constructor and Description |
---|
BeanLifecycleCallbacks(Class<?> cls,
Method method,
boolean arg)
Constructor.
|
BeanLifecycleCallbacks(Class<?> cls,
String method,
boolean arg,
Class<?> type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
makeCallback(Object obj,
Object rel,
int eventType)
Invoke the callback for the given event type on the given instance.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
getCallbackMethod, getMethod, hasCallback, requiresArgument, toString
public BeanLifecycleCallbacks(Class<?> cls, String method, boolean arg, Class<?> type)
arg
- whether another argument is expected such as AfterDetachpublic void makeCallback(Object obj, Object rel, int eventType) throws Exception
LifecycleCallbacks
makeCallback
in interface LifecycleCallbacks
makeCallback
in class MethodLifecycleCallbacks
Exception
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MethodLifecycleCallbacks
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MethodLifecycleCallbacks
IOException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.