org.mortbay.jetty.plus.annotation
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.
|
Method |
getTarget() |
Class |
getTargetClass() |
void |
setTarget(Class clazz,
String methodName) |
void |
setTarget(Method target) |
void |
setTargetClass(Class clazz) |
abstract void |
validate(Class clazz,
Method m) |
public static final Object[] __EMPTY_ARGS
public Class getTargetClass()
public void setTargetClass(Class clazz)
name
- the class to setpublic Method getTarget()
public void setTarget(Method target)
target
- the target to setpublic 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 © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.