1 21 package oracle.toplink.essentials.internal.security; 23 24 import java.security.PrivilegedExceptionAction ; 25 26 public class PrivilegedGetDeclaredMethod implements PrivilegedExceptionAction { 27 28 private Class clazz; 29 private String methodName; 30 private Class [] methodParameterTypes; 31 32 public PrivilegedGetDeclaredMethod(final Class clazz, final String methodName, final Class [] methodParameterTypes) { 33 this.clazz = clazz; 34 this.methodName = methodName; 35 this.methodParameterTypes = methodParameterTypes; 36 } 37 38 public Object run() throws NoSuchMethodException { 39 return PrivilegedAccessHelper.getDeclaredMethod(clazz, methodName, methodParameterTypes); 40 } 41 42 } 43 | Popular Tags |