public Class getHomeInterface() { return getDeploymentInfo().getHomeInterface(); }
/** * 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(); } }
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 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; }
if (info.getHomeInterface() != null) { methods.addAll(exclude(beanMethods, info.getHomeInterface().getMethods()));
if (info.getHomeInterface() != null) { methods.addAll(exclude(beanMethods, info.getHomeInterface().getMethods()));
methods.addAll(matchingMethods(methodInfo, wildCardView)); } else if (methodInfo.methodIntf.equals("Home")) { methods.addAll(matchingMethods(methodInfo, beanContext.getHomeInterface())); } else if (methodInfo.methodIntf.equals("Remote")) { if (beanContext.getRemoteInterface() != null) {
methods.addAll(matchingMethods(methodInfo, wildCardView)); } else if (methodInfo.methodIntf.equals("Home")) { methods.addAll(matchingMethods(methodInfo, beanContext.getHomeInterface())); } else if (methodInfo.methodIntf.equals("Remote")) { if (beanContext.getRemoteInterface() != null) {
public EJBObject getEJBObject() throws IllegalStateException { check(Call.getEJBObject); final ThreadContext threadContext = ThreadContext.getThreadContext(); final BeanContext di = threadContext.getBeanContext(); if (di.getHomeInterface() == null) { throw new IllegalStateException("Bean does not have an EJBObject interface: " + di.getDeploymentID()); } return (EJBObject) EjbObjectProxyHandler.createProxy(di, threadContext.getPrimaryKey(), InterfaceType.EJB_OBJECT, di.getRemoteInterface()); }
public EJBObject getEJBObject() throws IllegalStateException { doCheck(Call.getEJBObject); final ThreadContext threadContext = ThreadContext.getThreadContext(); final BeanContext di = threadContext.getBeanContext(); if (di.getHomeInterface() == null) { throw new IllegalStateException("Bean does not have an EJBObject interface: " + di.getDeploymentID()); } return (EJBObject) EjbObjectProxyHandler.createProxy(di, threadContext.getPrimaryKey(), InterfaceType.EJB_OBJECT, di.getRemoteInterface()); }
methods.addAll(matchingMethods(methodInfo, wildCardView)); } else if (methodInfo.methodIntf.equals("Home")) { methods.addAll(matchingMethods(methodInfo, beanContext.getHomeInterface())); } else if (methodInfo.methodIntf.equals("Remote")) { if (beanContext.getRemoteInterface() != null) {
methods.addAll(matchingMethods(methodInfo, wildCardView)); } else if (methodInfo.methodIntf.equals("Home")) { methods.addAll(matchingMethods(methodInfo, beanContext.getHomeInterface())); } else if (methodInfo.methodIntf.equals("Remote")) { if (beanContext.getRemoteInterface() != null) {
public EJBMetaData getEJBMetaData(final ProxyInfo pi) { final BeanContext beanContext = pi.getBeanContext(); final IntraVmMetaData metaData = new IntraVmMetaData(beanContext.getHomeInterface(), beanContext.getRemoteInterface(), beanContext.getComponentType()); metaData.setEJBHome(getEJBHome(pi)); return metaData; }
public EJBMetaData getEJBMetaData(final ProxyInfo pi) { final BeanContext beanContext = pi.getBeanContext(); final IntraVmMetaData metaData = new IntraVmMetaData(beanContext.getHomeInterface(), beanContext.getRemoteInterface(), beanContext.getComponentType()); metaData.setEJBHome(getEJBHome(pi)); return metaData; }
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); } }
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); } }
private EJBMetaDataImpl buildEjbMetaData(final ProxyInfo info, final BeanContext beanContext, final int idCode) { final EJBMetaDataImpl eMetaData = new EJBMetaDataImpl(beanContext.getHomeInterface(), beanContext.getRemoteInterface(), beanContext.getPrimaryKeyClass(), beanContext.getComponentType().toString(), beanContext.getDeploymentID().toString(), idCode, convert(info.getInterfaceType()), info.getInterfaces(), beanContext.getAsynchronousMethodSignatures()); eMetaData.loadProperties(beanContext.getProperties()); return eMetaData; } }
protected Object getEJBMetaData(final Method method, final Object[] args, final Object proxy) throws Throwable { checkAuthorization(method); final IntraVmMetaData metaData = new IntraVmMetaData(getBeanContext().getHomeInterface(), getBeanContext().getRemoteInterface(), getBeanContext().getPrimaryKeyClass(), getBeanContext().getComponentType()); metaData.setEJBHome((EJBHome) proxy); return metaData; }
protected Object getEJBMetaData(final Method method, final Object[] args, final Object proxy) throws Throwable { checkAuthorization(method); final IntraVmMetaData metaData = new IntraVmMetaData(getBeanContext().getHomeInterface(), getBeanContext().getRemoteInterface(), getBeanContext().getPrimaryKeyClass(), getBeanContext().getComponentType()); metaData.setEJBHome((EJBHome) proxy); return metaData; }