1 21 package oracle.toplink.essentials.internal.security; 23 24 import java.lang.reflect.Constructor ; 25 import java.lang.reflect.InvocationTargetException ; 26 import java.security.PrivilegedExceptionAction ; 27 28 public class PrivilegedInvokeConstructor implements PrivilegedExceptionAction { 29 30 private Constructor constructor; 31 private Object [] args; 32 33 public PrivilegedInvokeConstructor(Constructor constructor, Object [] args) { 34 this.constructor = constructor; 35 this.args = args; 36 } 37 38 public Object run() throws InstantiationException , InvocationTargetException , IllegalAccessException { 39 return PrivilegedAccessHelper.invokeConstructor(constructor, args); 40 } 41 } 42 43 | Popular Tags |