Class LifeCycleCallback
java.lang.Object
org.eclipse.jetty.plus.annotation.LifeCycleCallback
- Direct Known Subclasses:
PostConstructCallback
,PreDestroyCallback
LifeCycleCallback
Holds information about a class and method
that has either been configured in web.xml to have postconstruct or
predestroy callbacks, or has the equivalent annotations.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLifeCycleCallback
(Class<?> clazz, String methodName) LifeCycleCallback
(String className, String methodName) -
Method Summary
-
Field Details
-
__EMPTY_ARGS
-
-
Constructor Details
-
LifeCycleCallback
-
LifeCycleCallback
-
-
Method Details
-
getTargetClass
- Returns:
- the _targetClass
-
getTargetClassName
-
getMethodName
-
getTarget
Get the target.- Returns:
- the target
-
callback
public void callback(Object instance) throws SecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException -
findMethod
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:
- the method
-
hashCode
public int hashCode() -
equals
-
validate
-