public void setIntraVmCopyMode(final boolean on) { setDoIntraVmCopy(on); }
public void setIntraVmCopyMode(final boolean on) { setDoIntraVmCopy(on); }
public void setIntraVmCopyMode(boolean on) { setDoIntraVmCopy(on); }
public BaseEjbProxyHandler(final BeanContext beanContext, final Object pk, final InterfaceType interfaceType, List<Class> interfaces, Class mainInterface) { this.container = (RpcContainer) beanContext.getContainer(); this.deploymentID = beanContext.getDeploymentID(); this.interfaceType = interfaceType; this.primaryKey = pk; this.setBeanContext(beanContext); if (interfaces == null || interfaces.size() == 0) { final InterfaceType objectInterfaceType = interfaceType.isHome() ? interfaceType.getCounterpart() : interfaceType; interfaces = new ArrayList<Class>(beanContext.getInterfaces(objectInterfaceType)); } if (mainInterface == null && interfaces.size() == 1) { mainInterface = interfaces.get(0); } setInterfaces(interfaces); setMainInterface(mainInterface); if (mainInterface == null) { throw new IllegalArgumentException("No mainInterface: otherwise di: " + beanContext + " InterfaceType: " + interfaceType + " interfaces: " + interfaces); } this.setDoIntraVmCopy(REMOTE_COPY_ENABLED && !interfaceType.isLocal() && !interfaceType.isLocalBean()); }
public BaseEjbProxyHandler(final BeanContext beanContext, final Object pk, final InterfaceType interfaceType, List<Class> interfaces, Class mainInterface) { this.container = (RpcContainer) beanContext.getContainer(); this.deploymentID = beanContext.getDeploymentID(); this.interfaceType = interfaceType; this.primaryKey = pk; this.setBeanContext(beanContext); if (interfaces == null || interfaces.size() == 0) { final InterfaceType objectInterfaceType = interfaceType.isHome() ? interfaceType.getCounterpart() : interfaceType; interfaces = new ArrayList<Class>(beanContext.getInterfaces(objectInterfaceType)); } if (mainInterface == null && interfaces.size() == 1) { mainInterface = interfaces.get(0); } setInterfaces(interfaces); setMainInterface(mainInterface); if (mainInterface == null) { throw new IllegalArgumentException("No mainInterface: otherwise di: " + beanContext + " InterfaceType: " + interfaceType + " interfaces: " + interfaces); } this.setDoIntraVmCopy(REMOTE_COPY_ENABLED && !interfaceType.isLocal() && !interfaceType.isLocalBean()); }
public BaseEjbProxyHandler(DeploymentInfo deploymentInfo, Object pk, InterfaceType interfaceType, List<Class> interfaces) { this.container = (RpcContainer) deploymentInfo.getContainer(); this.deploymentID = deploymentInfo.getDeploymentID(); this.interfaceType = interfaceType; this.primaryKey = pk; this.setDeploymentInfo(deploymentInfo); if (interfaces == null || interfaces.size() == 0) { InterfaceType objectInterfaceType = (interfaceType.isHome()) ? interfaceType.getCounterpart() : interfaceType; interfaces = new ArrayList<Class>(deploymentInfo.getInterfaces(objectInterfaceType)); } this.setDoIntraVmCopy(!interfaceType.isLocal() && !interfaceType.isLocalBean()); if (!interfaceType.isLocal()&& !interfaceType.isLocalBean()){ setDoIntraVmCopy(REMOTE_COPY_ENABLED); } setInterfaces(interfaces); if (interfaceType.isHome()){ setMainInterface(deploymentInfo.getInterface(interfaceType)); } else { // Then arbitrarily pick the first interface setMainInterface(interfaces.get(0)); } }