Class LifeCycleCallback
- java.lang.Object
-
- org.eclipse.jetty.plus.annotation.LifeCycleCallback
-
- Direct Known Subclasses:
PostConstructCallback,PreDestroyCallback
public abstract class LifeCycleCallback extends Object
LifeCycleCallback
-
-
Field Summary
Fields Modifier and Type Field Description static Object[]__EMPTY_ARGS
-
Constructor Summary
Constructors Constructor Description LifeCycleCallback()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcallback(Object instance)booleanequals(Object o)MethodfindMethod(Package pack, Class<?> clazz, String methodName, boolean checkInheritance)Find a method of the given name either directly in the given class, or inherited.StringgetMethodName()MethodgetTarget()Class<?>getTargetClass()StringgetTargetClassName()voidsetTarget(Class<?> clazz, String methodName)voidsetTarget(String className, String methodName)abstract voidvalidate(Class<?> clazz, Method m)
-
-
-
Field Detail
-
__EMPTY_ARGS
public static final Object[] __EMPTY_ARGS
-
-
Method Detail
-
getTargetClass
public Class<?> getTargetClass()
- Returns:
- the _targetClass
-
getTargetClassName
public String getTargetClassName()
-
getMethodName
public String getMethodName()
-
getTarget
public Method getTarget()
- Returns:
- the target
-
callback
public void callback(Object instance) throws SecurityException, NoSuchMethodException, ClassNotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
-
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:
- the method
-
-