/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
@Override public Method run() throws NoSuchMethodException { return lookupMethod(javaClass, methodName, parameterTypes); }
@Override public T run() { return of(originalMember); }
public static <T> GetConstructorAction<T> of(Class<T> javaClass, Class<?>... parameterTypes) { return new GetConstructorAction<T>(javaClass, parameterTypes); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
@Override public Method run() throws NoSuchMethodException { return lookupMethod(javaClass, methodName, parameterTypes); }
/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }
@Override public T run() { return of(originalMember); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
@Override public Method run() throws NoSuchMethodException { return lookupMethod(javaClass, methodName, parameterTypes); }
/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }
@Override public T run() { return of(originalMember); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
@Override public Method run() throws NoSuchMethodException { return lookupMethod(javaClass, methodName, parameterTypes); }
/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }
@Override public Field run() throws NoSuchFieldException { return lookupField(javaClass, fieldName); }
/** * Returns {@link PrivilegedAction} instead of {@link PrivilegedExceptionAction}. If {@link NoSuchMethodException} is thrown * it is wrapped within {@link WeldException} using {@link ReflectionLogger#noSuchMethodWrapper(NoSuchMethodException, String)}. */ public static PrivilegedAction<Method> wrapException(Class<?> javaClass, String methodName, Class<?>... parameterTypes) { return new WrappingAction(javaClass, methodName, parameterTypes); }