public static Object createHomeProxy(DeploymentInfo deploymentInfo, InterfaceType interfaceType) { return createHomeProxy(deploymentInfo, interfaceType, null); }
public BusinessLocalBeanHome getBusinessLocalBeanHome() { final List<Class> interfaces = new ArrayList<Class>(); interfaces.add(this.beanClass); return (BusinessLocalBeanHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCALBEAN_HOME, interfaces, this.beanClass); }
public BusinessLocalBeanHome getBusinessLocalBeanHome() { final List<Class> interfaces = new ArrayList<Class>(); interfaces.add(this.beanClass); return (BusinessLocalBeanHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCALBEAN_HOME, interfaces, this.beanClass); }
public BusinessLocalBeanHome getBusinessLocalBeanHome() { List<Class> interfaces = new ArrayList<Class>(); interfaces.add(this.beanClass); return (BusinessLocalBeanHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCALBEAN_HOME, interfaces); }
public BusinessLocalHome getBusinessLocalHome(List<Class> interfaces) { if (getBusinessLocalInterfaces().size() == 0){ throw new IllegalStateException("This component has no business local interfaces: " + getDeploymentID()); } if (interfaces.size() == 0){ throw new IllegalArgumentException("No interface classes were specified"); } for (Class clazz : interfaces) { if (!getBusinessLocalInterfaces().contains(clazz)){ throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCAL_HOME, interfaces); }
public BusinessLocalHome getBusinessLocalHome(final List<Class> interfaces, final Class mainInterface) { if (getBusinessLocalInterfaces().size() == 0) { throw new IllegalStateException("This component has no business local interfaces: " + getDeploymentID()); } if (interfaces.size() == 0) { throw new IllegalArgumentException("No interface classes were specified"); } for (final Class clazz : interfaces) { if (!getBusinessLocalInterfaces().contains(clazz)) { throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCAL_HOME, interfaces, mainInterface); }
public EJBHome getEJBHome() { if (getHomeInterface() == null) { throw new IllegalStateException("This component has no home interface: " + getDeploymentID()); } if (ejbHomeRef == null) { ejbHomeRef = (EJBHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_HOME); } return ejbHomeRef; }
public EJBLocalHome getEJBLocalHome() { if (getLocalHomeInterface() == null) { throw new IllegalStateException("This component has no local home interface: " + getDeploymentID()); } if (ejbLocalHomeRef == null) { ejbLocalHomeRef = (EJBLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_LOCAL_HOME); } return ejbLocalHomeRef; }
public BusinessRemoteHome getBusinessRemoteHome(final List<Class> interfaces, final Class mainInterface) { if (getBusinessRemoteInterfaces().size() == 0) { throw new IllegalStateException("This component has no business remote interfaces: " + getDeploymentID()); } if (interfaces.size() == 0) { throw new IllegalArgumentException("No interface classes were specified"); } for (final Class clazz : interfaces) { if (!getBusinessRemoteInterfaces().contains(clazz)) { throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessRemoteHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_REMOTE_HOME, interfaces, mainInterface); }
public BusinessRemoteHome getBusinessRemoteHome(List<Class> interfaces) { if (getBusinessRemoteInterfaces().size() == 0){ throw new IllegalStateException("This component has no business remote interfaces: " + getDeploymentID()); } if (interfaces.size() == 0){ throw new IllegalArgumentException("No interface classes were specified"); } for (Class clazz : interfaces) { if (!getBusinessRemoteInterfaces().contains(clazz)){ throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessRemoteHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_REMOTE_HOME, interfaces); }
public BusinessRemoteHome getBusinessRemoteHome(final List<Class> interfaces, final Class mainInterface) { if (getBusinessRemoteInterfaces().size() == 0) { throw new IllegalStateException("This component has no business remote interfaces: " + getDeploymentID()); } if (interfaces.size() == 0) { throw new IllegalArgumentException("No interface classes were specified"); } for (final Class clazz : interfaces) { if (!getBusinessRemoteInterfaces().contains(clazz)) { throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessRemoteHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_REMOTE_HOME, interfaces, mainInterface); }
public BusinessLocalHome getBusinessLocalHome(final List<Class> interfaces, final Class mainInterface) { if (getBusinessLocalInterfaces().size() == 0) { throw new IllegalStateException("This component has no business local interfaces: " + getDeploymentID()); } if (interfaces.size() == 0) { throw new IllegalArgumentException("No interface classes were specified"); } for (final Class clazz : interfaces) { if (!getBusinessLocalInterfaces().contains(clazz) && !getBusinessRemoteInterfaces().contains(clazz) /* for CDI mainly */) { throw new IllegalArgumentException("Not a business interface of this bean:" + clazz.getName()); } } return (BusinessLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.BUSINESS_LOCAL_HOME, interfaces, mainInterface); }
public EJBHome getEJBHome(final ProxyInfo pi) { return (EJBHome) EjbHomeProxyHandler.createHomeProxy(pi.getBeanContext(), pi.getInterfaceType()); }
public EJBHome getEJBHome(ProxyInfo pi) { return (EJBHome) EjbHomeProxyHandler.createHomeProxy(pi.getDeploymentInfo(), pi.getInterfaceType()); }
public static Object createHomeProxy(final BeanContext beanContext, final InterfaceType interfaceType) { return createHomeProxy(beanContext, interfaceType, null, interfaceType.isRemote() ? beanContext.getRemoteInterface() : beanContext.getLocalInterface()); }
public static Object createHomeProxy(final BeanContext beanContext, final InterfaceType interfaceType) { return createHomeProxy(beanContext, interfaceType, null, interfaceType.isRemote() ? beanContext.getRemoteInterface() : beanContext.getLocalInterface()); }
public EJBHome getEJBHome() { if (getHomeInterface() == null) { throw new IllegalStateException("This component has no home interface: " + getDeploymentID()); } if (getLegacyView().ejbHomeRef == null) { getLegacyView().ejbHomeRef = (EJBHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_HOME); } return getLegacyView().ejbHomeRef; }
public EJBLocalHome getEJBLocalHome() { if (getLocalHomeInterface() == null) { throw new IllegalStateException("This component has no local home interface: " + getDeploymentID()); } if (getLegacyView().ejbLocalHomeRef == null) { getLegacyView().ejbLocalHomeRef = (EJBLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_LOCAL_HOME); } return getLegacyView().ejbLocalHomeRef; }
public EJBHome getEJBHome() { if (getHomeInterface() == null) { throw new IllegalStateException("This component has no home interface: " + getDeploymentID()); } if (getLegacyView().ejbHomeRef == null) { getLegacyView().ejbHomeRef = (EJBHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_HOME); } return getLegacyView().ejbHomeRef; }
public EJBLocalHome getEJBLocalHome() { if (getLocalHomeInterface() == null) { throw new IllegalStateException("This component has no local home interface: " + getDeploymentID()); } if (getLegacyView().ejbLocalHomeRef == null) { getLegacyView().ejbLocalHomeRef = (EJBLocalHome) EjbHomeProxyHandler.createHomeProxy(this, InterfaceType.EJB_LOCAL_HOME); } return getLegacyView().ejbLocalHomeRef; }