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