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 StringmethodNameprotected 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)Methodrun()static PrivilegedAction<Method>wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes)ReturnsPrivilegedActioninstead 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)
ReturnsPrivilegedActioninstead ofPrivilegedExceptionAction. IfNoSuchMethodExceptionis thrown it is wrapped withinWeldExceptionusingReflectionLogger.noSuchMethodWrapper(NoSuchMethodException, String).
-
run
public Method run() throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
-