public abstract class LifeCycleCallback extends Object
Modifier and Type | Field and Description |
---|---|
static Object[] |
__EMPTY_ARGS |
Constructor and Description |
---|
LifeCycleCallback() |
Modifier and Type | Method and Description |
---|---|
void |
callback(Object instance) |
boolean |
equals(Object o) |
Method |
findMethod(Package pack,
Class<?> clazz,
String methodName,
boolean checkInheritance)
Find a method of the given name either directly in the given
class, or inherited.
|
String |
getMethodName() |
Method |
getTarget() |
Class<?> |
getTargetClass() |
String |
getTargetClassName() |
void |
setTarget(Class<?> clazz,
String methodName) |
void |
setTarget(String className,
String methodName) |
abstract void |
validate(Class<?> clazz,
Method m) |
public static final Object[] __EMPTY_ARGS
public Class<?> getTargetClass()
public String getTargetClassName()
public String getMethodName()
public Method getTarget()
public void callback(Object instance) throws SecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public Method findMethod(Package pack, Class<?> clazz, String methodName, boolean checkInheritance)
pack
- the package of the class under inspectionclazz
- the class under inspectionmethodName
- the method to findcheckInheritance
- false on first entry, true if a superclass is being introspectedCopyright © 1995-2015 Webtide. All Rights Reserved.