org.eclipse.jetty.plus.annotation
类 LifeCycleCallback

java.lang.Object
  继承者 org.eclipse.jetty.plus.annotation.LifeCycleCallback
直接已知子类:
PostConstructCallback, PreDestroyCallback

public abstract class LifeCycleCallback
extends Object

LifeCycleCallback


字段摘要
static Object[] __EMPTY_ARGS
           
 
构造方法摘要
LifeCycleCallback()
           
 
方法摘要
 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.
 String getMethodName()
           
 Method getTarget()
           
 Class<?> getTargetClass()
           
 String getTargetClassName()
           
 void setTarget(Class<?> clazz, String methodName)
           
 void setTarget(String className, String methodName)
           
abstract  void validate(Class<?> clazz, Method m)
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

__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 inspection
clazz - the class under inspection
methodName - the method to find
checkInheritance - 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.