public class InvokableAnnotatedMethod<T> extends ForwardingAnnotatedMethod<T>
AnnotatedMethod
used at runtime for invoking Java methods.Constructor and Description |
---|
InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) |
Modifier and Type | Method and Description |
---|---|
AnnotatedMethod<T> |
delegate() |
<X> X |
invoke(Object instance,
Object... parameters)
Invokes the method
|
<X> X |
invokeOnInstance(Object instance,
Object... parameters)
Invokes the method on the class of the passed instance, not the declaring
class.
|
static <T> InvokableAnnotatedMethod<T> |
of(AnnotatedMethod<T> delegate) |
getJavaMember
getParameters
getDeclaringType, isStatic
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameters
getDeclaringType, isStatic
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod)
public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate)
public <X> X invoke(Object instance, Object... parameters) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
instance
- The instance to invokeparameters
- The method parametersIllegalArgumentException
IllegalAccessException
InvocationTargetException
public <X> X invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
instance
- The instance to invokemanager
- The Bean managerIllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public AnnotatedMethod<T> delegate()
delegate
in class ForwardingAnnotatedMethod<T>
Copyright © 2013 Seam Framework. All Rights Reserved.