public Class getLocalHomeInterface() { return getDeploymentInfo().getLocalHomeInterface(); }
/** * This ManagedBean is added to all EjbModules to effectively * create a sharable "comp" namespace which can be used in * for components with undefined namespace such as CDI */ public static class Comp { public static String openejbCompName(final String module) { return module + "." + Comp.class.getSimpleName(); } }
/** * This ManagedBean is added to all EjbModules to effectively * create a sharable "comp" namespace which can be used in * for components with undefined namespace such as CDI */ public static class Comp { public static String openejbCompName(final String module) { return module + "." + Comp.class.getSimpleName(); } }
final Class localHomeInterface = beanContext.getLocalHomeInterface(); if (localHomeInterface != null) { for (final Method method : localHomeInterface.getMethods()) {
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; }
final Class localHomeInterface = beanContext.getLocalHomeInterface(); if (localHomeInterface != null) { for (final Method method : localHomeInterface.getMethods()) {
final Class localHomeInterface = beanContext.getLocalHomeInterface(); if (localHomeInterface != null) { for (final Method method : localHomeInterface.getMethods()) {
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; }
if (info.getLocalHomeInterface() != null) { methods.addAll(exclude(beanMethods, info.getLocalHomeInterface().getMethods()));
if (info.getLocalHomeInterface() != null) { methods.addAll(exclude(beanMethods, info.getLocalHomeInterface().getMethods()));
methods.addAll(matchingMethods(methodInfo, beanContext.getLocalHomeInterface())); } else if (methodInfo.methodIntf.equals("Local")) { if (beanContext.getLocalInterface() != null) {
methods.addAll(matchingMethods(methodInfo, beanContext.getLocalHomeInterface())); } else if (methodInfo.methodIntf.equals("Local")) { if (beanContext.getLocalInterface() != null) {
public EJBLocalObject getEJBLocalObject() throws IllegalStateException { check(Call.getEJBLocalObject); final ThreadContext threadContext = ThreadContext.getThreadContext(); final BeanContext di = threadContext.getBeanContext(); if (di.getLocalHomeInterface() == null) { throw new IllegalStateException("Bean does not have an EJBLocalObject interface: " + di.getDeploymentID()); } return (EJBLocalObject) EjbObjectProxyHandler.createProxy(di, threadContext.getPrimaryKey(), InterfaceType.EJB_LOCAL, di.getLocalInterface()); }
public EJBLocalObject getEJBLocalObject() throws IllegalStateException { doCheck(Call.getEJBLocalObject); final ThreadContext threadContext = ThreadContext.getThreadContext(); final BeanContext di = threadContext.getBeanContext(); if (di.getLocalHomeInterface() == null) { throw new IllegalStateException("Bean does not have an EJBLocalObject interface: " + di.getDeploymentID()); } return (EJBLocalObject) EjbObjectProxyHandler.createProxy(di, threadContext.getPrimaryKey(), InterfaceType.EJB_LOCAL, di.getLocalInterface()); }
methods.addAll(matchingMethods(methodInfo, beanContext.getLocalHomeInterface())); } else if (methodInfo.methodIntf.equals("Local")) { if (beanContext.getLocalInterface() != null) {
methods.addAll(matchingMethods(methodInfo, beanContext.getLocalHomeInterface())); } else if (methodInfo.methodIntf.equals("Local")) { if (beanContext.getLocalInterface() != null) {
public Class getInterface(final InterfaceType interfaceType) { switch (interfaceType) { case EJB_HOME: return getHomeInterface(); case EJB_OBJECT: return getRemoteInterface(); case EJB_LOCAL_HOME: return getLocalHomeInterface(); case EJB_LOCAL: return getLocalInterface(); case BUSINESS_LOCAL: return getBusinessLocalInterface(); case BUSINESS_REMOTE: return getBusinessRemoteInterface(); case TIMEOUT: return BeanContext.Timeout.class; case BUSINESS_REMOTE_HOME: return BeanContext.BusinessRemoteHome.class; case BUSINESS_LOCAL_HOME: return BeanContext.BusinessLocalHome.class; case SERVICE_ENDPOINT: return getServiceEndpointInterface(); case LOCALBEAN: return getBeanClass(); case BUSINESS_LOCALBEAN_HOME: return BeanContext.BusinessLocalBeanHome.class; default: throw new IllegalStateException("Unexpected enum constant: " + interfaceType); } }
mapObjectInterface(getLegacyView().localInterface); if (getLocalHomeInterface() != null) { mapHomeInterface(getLegacyView().localHomeInterface); if (beanMethod == null && (getHomeInterface() != null || getLocalHomeInterface() != null)) { throw new IllegalStateException("Bean class has no @Remove methods to match EJBObject.remove() or EJBLocalObject.remove(). A no-arg remove method must be added: beanClass=" + beanClass.getName());
mapObjectInterface(getLegacyView().localInterface); if (getLocalHomeInterface() != null) { mapHomeInterface(getLegacyView().localHomeInterface); if (beanMethod == null && (getHomeInterface() != null || getLocalHomeInterface() != null)) { throw new IllegalStateException("Bean class has no @Remove methods to match EJBObject.remove() or EJBLocalObject.remove(). A no-arg remove method must be added: beanClass=" + beanClass.getName());
public Class getInterface(final InterfaceType interfaceType) { switch (interfaceType) { case EJB_HOME: return getHomeInterface(); case EJB_OBJECT: return getRemoteInterface(); case EJB_LOCAL_HOME: return getLocalHomeInterface(); case EJB_LOCAL: return getLocalInterface(); case BUSINESS_LOCAL: return getBusinessLocalInterface(); case BUSINESS_REMOTE: return getBusinessRemoteInterface(); case TIMEOUT: return BeanContext.Timeout.class; case BUSINESS_REMOTE_HOME: return BeanContext.BusinessRemoteHome.class; case BUSINESS_LOCAL_HOME: return BeanContext.BusinessLocalHome.class; case SERVICE_ENDPOINT: return getServiceEndpointInterface(); case LOCALBEAN: return getBeanClass(); case BUSINESS_LOCALBEAN_HOME: return BeanContext.BusinessLocalBeanHome.class; default: throw new IllegalStateException("Unexpected enum constant: " + interfaceType); } }