isValidBusinessInterface = this.sessionBean31MetaData.isNoInterfaceBean() && this.beanClassName.equals(businessInterface.getName());
public JBossSessionBean31DescriptorAdaptor(JBossSessionBean31MetaData sessionBeanMetaData, DeploymentUnit deploymentUnit, EjbReferenceResolver resolver) { super(sessionBeanMetaData, deploymentUnit, resolver); if (sessionBeanMetaData.isNoInterfaceBean()) { getLocalBusinessInterfaces().add(new JBossBussinessInterfaceDescriptorAdaptor<T>(sessionBeanMetaData.getEjbClass(), sessionBeanMetaData.getEjbName(), deploymentUnit, resolver)); this.localJndiName = getJndiName(sessionBeanMetaData); this.noInterfaceView = true; } else { this.localJndiName = null; this.noInterfaceView = true; } }
if(((JBossSessionBean31MetaData) smd).isNoInterfaceBean() && businessInterface.equals(container.getBeanClass())) return createNoInterfaceBusinessObject(container, sessionId, businessInterface);
public JBossSessionBean31DescriptorAdaptor(JBossSessionBean31MetaData sessionBeanMetaData, DeploymentUnit deploymentUnit, EjbReferenceResolver resolver) { super(sessionBeanMetaData, deploymentUnit, resolver); if (sessionBeanMetaData.isNoInterfaceBean()) { getLocalBusinessInterfaces().add(new JBossBussinessInterfaceDescriptorAdaptor<T>(sessionBeanMetaData.getEjbClass(), sessionBeanMetaData.getEjbName(), deploymentUnit, resolver)); this.localJndiName = getJndiName(sessionBeanMetaData); this.noInterfaceView = true; } else { this.localJndiName = null; this.noInterfaceView = false; } singleton = sessionBeanMetaData.isSingleton(); }
protected ViewType getViewType(SessionContainer container, Class<?> intf) { // try to see if we can pass the preconditions of LegacyStatefulBusinessObjectFactory? // a direct copy out of LegacyStatefulBusinessObjectFactory // less risky than rolling our own thing. Class<?>[] remoteInterfaces = ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(container); if(arrayContains(remoteInterfaces, intf)) return ViewType.REMOTE; Class<?>[] localInterfaces = ProxyFactoryHelper.getLocalAndBusinessLocalInterfaces(container); if(arrayContains(localInterfaces, intf)) return ViewType.LOCAL; // copied out of EJB3NoInterfaceDeployer JBossSessionBeanMetaData beanMetaData = container.getMetaData(); if(!(beanMetaData instanceof JBossSessionBean31MetaData)) return ViewType.UNKNOWN; JBossSessionBean31MetaData sessionBean31MetaData = (JBossSessionBean31MetaData) beanMetaData; if(!sessionBean31MetaData.isNoInterfaceBean()) return ViewType.UNKNOWN; // it could still be an unknown view, make sure it's the no-interface view if(intf.equals(container.getBeanClass())) return ViewType.NO_INTERFACE; return ViewType.UNKNOWN; }
if (sessionBean31.isNoInterfaceBean())