Class PostConstructCallback
- java.lang.Object
-
- org.eclipse.jetty.plus.annotation.LifeCycleCallback
-
- org.eclipse.jetty.plus.annotation.PostConstructCallback
-
public class PostConstructCallback extends LifeCycleCallback
PostConstructCallback
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.plus.annotation.LifeCycleCallback
__EMPTY_ARGS
-
-
Constructor Summary
Constructors Constructor Description PostConstructCallback(java.lang.Class<?> clazz, java.lang.String methodName)
PostConstructCallback(java.lang.String className, java.lang.String methodName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callback(java.lang.Object instance)
boolean
equals(java.lang.Object o)
void
validate(java.lang.Class<?> clazz, java.lang.reflect.Method method)
Commons Annotation Specification section 2.5 - no params - must be void return - no checked exceptions - cannot be static-
Methods inherited from class org.eclipse.jetty.plus.annotation.LifeCycleCallback
findMethod, getMethodName, getTarget, getTargetClass, getTargetClassName, hashCode
-
-
-
-
Constructor Detail
-
PostConstructCallback
public PostConstructCallback(java.lang.Class<?> clazz, java.lang.String methodName)
- Parameters:
clazz
- the class object to be injectedmethodName
- the name of the method to be injected
-
PostConstructCallback
public PostConstructCallback(java.lang.String className, java.lang.String methodName)
- Parameters:
className
- the name of the class to be injectedmethodName
- the name of the method to be injected
-
-
Method Detail
-
validate
public void validate(java.lang.Class<?> clazz, java.lang.reflect.Method method)
Commons Annotation Specification section 2.5 - no params - must be void return - no checked exceptions - cannot be static- Specified by:
validate
in classLifeCycleCallback
- See Also:
LifeCycleCallback.validate(java.lang.Class, java.lang.reflect.Method)
-
callback
public void callback(java.lang.Object instance) throws java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Overrides:
callback
in classLifeCycleCallback
- Throws:
java.lang.SecurityException
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classLifeCycleCallback
-
-