1 21 package oracle.toplink.essentials.internal.security; 23 24 import java.security.PrivilegedExceptionAction ; 25 26 public class PrivilegedGetConstructorFor implements PrivilegedExceptionAction { 27 28 private Class javaClass; 29 private Class [] args; 30 private boolean shouldSetAccessible; 31 32 public PrivilegedGetConstructorFor(Class javaClass, Class [] args, boolean shouldSetAccessible) { 33 this.javaClass = javaClass; 34 this.args = args; 35 this.shouldSetAccessible = shouldSetAccessible; 36 } 37 38 public Object run() throws NoSuchMethodException { 39 return PrivilegedAccessHelper.getConstructorFor(javaClass, args, shouldSetAccessible); 40 } 41 42 } 43 44 45 | Popular Tags |