org.eclipse.jetty.plus.annotation
类 LifeCycleCallback
java.lang.Object
org.eclipse.jetty.plus.annotation.LifeCycleCallback
- 直接已知子类:
- PostConstructCallback, PreDestroyCallback
public abstract class LifeCycleCallback
- extends Object
LifeCycleCallback
__EMPTY_ARGS
public static final Object[] __EMPTY_ARGS
LifeCycleCallback
public LifeCycleCallback()
getTargetClass
public Class<?> getTargetClass()
- 返回:
- the _targetClass
getTargetClassName
public String getTargetClassName()
getMethodName
public String getMethodName()
getTarget
public Method getTarget()
- 返回:
- the target
setTarget
public void setTarget(String className,
String methodName)
setTarget
public void setTarget(Class<?> clazz,
String methodName)
callback
public void callback(Object instance)
throws SecurityException,
NoSuchMethodException,
ClassNotFoundException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
- 抛出:
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.
- 参数:
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
- 返回:
- the method
equals
public boolean equals(Object o)
- 覆盖:
- 类
Object 中的 equals
validate
public abstract void validate(Class<?> clazz,
Method m)
Copyright © 2013. All Rights Reserved.