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) |
getJavaMembergetParametersgetDeclaringType, isStaticequals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParametersgetDeclaringType, isStaticgetAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentpublic 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 parametersIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionpublic <X> X invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
instance - The instance to invokemanager - The Bean managerIllegalArgumentExceptionSecurityExceptionIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic AnnotatedMethod<T> delegate()
delegate in class ForwardingAnnotatedMethod<T>Copyright © 2014. All Rights Reserved.