public abstract class GetDeclaredMethodAction extends AbstractReflectionAction
| Modifier and Type | Field and Description |
|---|---|
protected String |
methodName |
protected Class<?>[] |
parameterTypes |
javaClass| Constructor and Description |
|---|
GetDeclaredMethodAction(Class<?> javaClass,
String methodName,
Class<?>... parameterTypes) |
| Modifier and Type | Method and Description |
|---|---|
static PrivilegedExceptionAction<Method> |
of(Class<?> javaClass,
String methodName,
Class<?>... parameterTypes) |
Method |
run() |
static PrivilegedAction<Method> |
wrapException(Class<?> javaClass,
String methodName,
Class<?>... parameterTypes)
Returns
PrivilegedAction instead of PrivilegedExceptionAction. |
protected final String methodName
protected final Class<?>[] parameterTypes
public static PrivilegedExceptionAction<Method> of(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes)
PrivilegedAction instead of PrivilegedExceptionAction. If NoSuchMethodException is thrown
it is wrapped within WeldException using ReflectionLogger.noSuchMethodWrapper(NoSuchMethodException, String).public Method run() throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2017. All rights reserved.