org.eclipse.jetty.plus.annotation
Class LifeCycleCallback
java.lang.Object
org.eclipse.jetty.plus.annotation.LifeCycleCallback
- Direct Known Subclasses:
- PostConstructCallback, PreDestroyCallback
public abstract class LifeCycleCallback
- extends Object
LifeCycleCallback
__EMPTY_ARGS
public static final Object[] __EMPTY_ARGS
LifeCycleCallback
public LifeCycleCallback()
getTargetClass
public Class getTargetClass()
- Returns:
- the _targetClass
setTargetClass
public void setTargetClass(Class clazz)
- Parameters:
name
- the class to set
getTarget
public Method getTarget()
- Returns:
- the target
setTarget
public void setTarget(Method target)
- Parameters:
target
- the target to set
setTarget
public void setTarget(Class clazz,
String methodName)
callback
public void callback(Object instance)
throws Exception
- Throws:
Exception
findMethod
public 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.
- Parameters:
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 introspected
- Returns:
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
validate
public abstract void validate(Class clazz,
Method m)
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.