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; } }
EjbDescriptor<?> ejbDescriptor = new JBossSessionBean31DescriptorAdaptor<Object>(sessionBeanMetaData, du, resolver); ejbs.add(ejbDescriptor);
public JBossSessionObjectReference(EjbDescriptor<?> descriptor, DeploymentUnit deploymentUnit, Context context) throws NamingException { if (!(descriptor instanceof JBossSessionBeanDescriptorAdaptor<?>)) { throw new IllegalArgumentException("Can only operate on JBoss EJB3"); } this.jndiName = ((JBossSessionBeanDescriptorAdaptor<?>) descriptor).getLocalJndiName(); reference = context.lookup(jndiName); if (descriptor instanceof JBossSessionBean31DescriptorAdaptor<?> && ((JBossSessionBean31DescriptorAdaptor<?>) descriptor).isNoInterfaceView()) { this.id = null; } else { SessionProxyInvocationHandler handler = (SessionProxyInvocationHandler) Proxy.getInvocationHandler(reference); id = (Serializable) handler.getTarget(); } @Deprecated Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar(); // Get the resolver EndpointResolver resolver = registrar.lookup(MC_BIND_NAME_ENDPOINT_RESOLVER, EndpointResolver.class); this.ejbClassName = descriptor.getBeanClass().getSimpleName(); endpointMcBindName = resolver.resolve(deploymentUnit, ejbClassName); this.stateful = descriptor.isStateful(); }
EjbDescriptor<?> ejbDescriptor = new JBossSessionBean31DescriptorAdaptor<Object>(sessionBeanMetaData, du, resolver); addEjbDescriptor(ejbDescriptor, du);
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(); }