public boolean isRemoteInterface(Class<?> c) { boolean remoteInterface = true; try { validateRemoteInterface(c); } catch (IDLTypeException ite) { remoteInterface = false; } return remoteInterface; }
public boolean isRemoteInterface(Class<?> c) { boolean remoteInterface = true; try { validateRemoteInterface(c); } catch (IDLTypeException ite) { remoteInterface = false; } return remoteInterface; }
/** * 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; } }