public ReflectiveTie(PresentationManager pm, ORBUtilSystemException wrapper) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.pm = pm; this.wrapper = wrapper; }
public ReflectiveTie(PresentationManager pm, ORBUtilSystemException wrapper) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.pm = pm; this.wrapper = wrapper; }
public StubInvocationHandlerImpl(PresentationManager pm, PresentationManager.ClassData classData, org.omg.CORBA.Object stub) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.classData = classData; this.pm = pm; this.stub = stub; }
public StubInvocationHandlerImpl(PresentationManager pm, PresentationManager.ClassData classData, org.omg.CORBA.Object stub) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.classData = classData; this.pm = pm; this.stub = stub; }
public static InvocationHandler create(final Object delegate) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } return new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // This throws an IllegalArgument exception if the delegate is not assignable from method.getDeclaring // class. try { return method.invoke(delegate, args); } catch (InvocationTargetException ite) { // Propagate the underlying exception as the result of the invocation throw ite.getCause(); } } }; } }
public static InvocationHandler create(final Object delegate) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } return new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // This throws an IllegalArgument exception if the delegate is not assignable from method.getDeclaring // class. try { return method.invoke(delegate, args); } catch (InvocationTargetException ite) { // Propagate the underlying exception as the result of the invocation throw ite.getCause(); } } }; } }
/** * Initialize an IDLNameTranslator for the given interface. * * @throws IllegalStateException * if given class is not a valid RMI/IIOP Remote Interface */ private IDLNameTranslatorImpl(Class<?>[] interfaces) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } try { IDLTypesUtil idlTypesUtil = new IDLTypesUtil(); for (int ctr = 0; ctr < interfaces.length; ctr++) idlTypesUtil.validateRemoteInterface(interfaces[ctr]); interf_ = interfaces; buildNameTranslation(); } catch (IDLTypeException ite) { String msg = ite.getMessage(); IllegalStateException ise = new IllegalStateException(msg); ise.initCause(ite); throw ise; } }
/** * Initialize an IDLNameTranslator for the given interface. * * @throws IllegalStateException * if given class is not a valid RMI/IIOP Remote Interface */ private IDLNameTranslatorImpl(Class<?>[] interfaces) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } try { IDLTypesUtil idlTypesUtil = new IDLTypesUtil(); for (int ctr = 0; ctr < interfaces.length; ctr++) idlTypesUtil.validateRemoteInterface(interfaces[ctr]); interf_ = interfaces; buildNameTranslation(); } catch (IDLTypeException ite) { String msg = ite.getMessage(); IllegalStateException ise = new IllegalStateException(msg); ise.initCause(ite); throw ise; } }