public Class getBusinessRemoteInterface() { return getDeploymentInfo().getBusinessRemoteInterface(); }
private static String getType(final BeanContext bc) { boolean empty = true; final StringBuilder sb = new StringBuilder(); if (bc.isLocalbean()) { sb.append("LocalBean[").append(bc.getBeanClass()).append("]"); empty = false; } if (bc.getBusinessLocalInterface() != null) { if (!empty) { sb.append(", "); } sb.append("Local").append(Arrays.asList(bc.getBusinessLocalInterfaces())); empty = false; } if (bc.getBusinessRemoteInterface() != null) { if (!empty) { sb.append(", "); } sb.append("Remote").append(Arrays.asList(bc.getBusinessRemoteInterfaces())); } return sb.toString(); } }
private static String getType(final BeanContext bc) { boolean empty = true; final StringBuilder sb = new StringBuilder(); if (bc.isLocalbean()) { sb.append("LocalBean[").append(bc.getBeanClass()).append("]"); empty = false; } if (bc.getBusinessLocalInterface() != null) { if (!empty) { sb.append(", "); } sb.append("Local").append(Arrays.asList(bc.getBusinessLocalInterfaces())); empty = false; } if (bc.getBusinessRemoteInterface() != null) { if (!empty) { sb.append(", "); } sb.append("Remote").append(Arrays.asList(bc.getBusinessRemoteInterfaces())); } return sb.toString(); } }
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); } }
final Class businessRemoteHomeInterface = beanContext.getBusinessRemoteInterface(); if (businessRemoteHomeInterface != null) { for (final Method method : BeanContext.BusinessRemoteHome.class.getMethods()) {
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); } }
final Class businessRemoteHomeInterface = beanContext.getBusinessRemoteInterface(); if (businessRemoteHomeInterface != null) { for (final Method method : BeanContext.BusinessRemoteHome.class.getMethods()) {
public void initInternals() { final List<Class> classes = beanContext.getBusinessLocalInterfaces(); final boolean noLocalInterface = classes.isEmpty(); if (beanContext.getComponentType().isMessageDriven()) { homeLocalBean = null; home = null; remote = null; } else if (beanContext.isLocalbean() || (noLocalInterface && beanContext.getBusinessRemoteInterfaces().isEmpty() /*EJB2*/)) { homeLocalBean = beanContext.getBusinessLocalBeanHome(); home = null; remote = null; } else if (!noLocalInterface) { final Class<?> mainInterface = classes.get(0); final List<Class> interfaces = ProxyInterfaceResolver.getInterfaces(beanContext.getBeanClass(), mainInterface, classes); interfaces.addAll(beanContext.getBusinessRemoteInterfaces()); home = beanContext.getBusinessLocalHome(interfaces, mainInterface); homeLocalBean = null; remote = null; } else { final Class<?> mainInterface = beanContext.getBusinessRemoteInterface(); final List<Class> interfaces = ProxyInterfaceResolver.getInterfaces(beanContext.getBeanClass(), mainInterface, beanContext.getBusinessRemoteInterfaces()); remote = beanContext.getBusinessRemoteHome(interfaces, mainInterface); home = null; homeLocalBean = null; } }
final Class businessRemoteHomeInterface = beanContext.getBusinessRemoteInterface(); if (businessRemoteHomeInterface != null) { for (final Method method : BeanContext.BusinessRemoteHome.class.getMethods()) {
final Class businessRemoteHomeInterface = beanContext.getBusinessRemoteInterface(); if (businessRemoteHomeInterface != null) { for (final Method method : BeanContext.BusinessRemoteHome.class.getMethods()) {
informations.add(information); if (beanContext.getBusinessRemoteInterface() != null) { information = new EjbInformation(); information.setName(getLocalizedString(request, BUNDLE_NAME, BRI_KEY));