public class InvokableAnnotatedMethod<T> extends ForwardingAnnotatedMethod<T>
AnnotatedMethod
used at runtime for invoking Java methods.Constructor and Description |
---|
InvokableAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedMethod<T> annotatedMethod) |
Modifier and Type | Method and Description |
---|---|
javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.AnnotatedMethod<T> delegate) |
getJavaMember
getParameters
getDeclaringType, isStatic
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public InvokableAnnotatedMethod(javax.enterprise.inject.spi.AnnotatedMethod<T> annotatedMethod)
public static <T> InvokableAnnotatedMethod<T> of(javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.AnnotatedMethod<T> delegate()
delegate
in class ForwardingAnnotatedMethod<T>
Copyright © 2016. All rights reserved.