Package org.jboss.weld.security
Class GetDeclaredMethodAction
- java.lang.Object
-
- org.jboss.weld.security.AbstractReflectionAction
-
- org.jboss.weld.security.GetDeclaredMethodAction
-
- Direct Known Subclasses:
MethodLookupAction
public abstract class GetDeclaredMethodAction extends AbstractReflectionAction
-
-
Field Summary
Fields Modifier and Type Field Description protected String
methodName
protected Class<?>[]
parameterTypes
-
Fields inherited from class org.jboss.weld.security.AbstractReflectionAction
javaClass
-
-
Constructor Summary
Constructors Constructor Description GetDeclaredMethodAction(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivilegedExceptionAction<Method>
of(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
Method
run()
static PrivilegedAction<Method>
wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
ReturnsPrivilegedAction
instead ofPrivilegedExceptionAction
.
-
-
-
Method Detail
-
of
public static PrivilegedExceptionAction<Method> of(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
-
wrapException
public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
ReturnsPrivilegedAction
instead ofPrivilegedExceptionAction
. IfNoSuchMethodException
is thrown it is wrapped withinWeldException
usingReflectionLogger.noSuchMethodWrapper(NoSuchMethodException, String)
.
-
run
public Method run() throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
-