public void initTypes() { if (beanContext.isLocalbean()) { addApiTypes(ejbTypes, beanContext.getBeanClass()); addApiTypes(ejbTypes, beanContext.getProxyClass());
public EJBBeanAttributesImpl(final BeanContext bc, final BeanAttributesImpl<T> beanAttributes) { super(beanAttributes, false); this.beanContext = bc; this.ejbTypes = new HashSet<Type>(); initTypes(); }
public CdiEjbBean(final BeanContext bc, final WebBeansContext webBeansContext, final Class beanClass, final AnnotatedType<T> at, final InjectionTargetFactoryImpl<T> factory, final BeanAttributes<T> attributes) { super(webBeansContext, toSessionType(bc.getComponentType()), at, new EJBBeanAttributesImpl<T>(bc, attributes), beanClass, factory); this.beanContext = bc;
public void initTypes() { if (beanContext.isLocalbean()) { addApiTypes(ejbTypes, beanContext.getBeanClass()); } if (beanContext.getProxyClass() != null) { addApiTypes(ejbTypes, beanContext.getProxyClass()); } final List<Class> cl = beanContext.getBusinessLocalInterfaces(); if (cl != null && !cl.isEmpty()) { for (final Class<?> c : cl) { ejbTypes.add(c); } } if (!ejbTypes.contains(Serializable.class)) { ejbTypes.add(Serializable.class); } ejbTypes.add(Object.class); }
public CdiEjbBean(final BeanContext beanContext, final WebBeansContext webBeansContext, final Class beanClass, final AnnotatedType<T> at, final InjectionTargetFactoryImpl<T> factory) { super(webBeansContext, toSessionType(beanContext.getComponentType()), at, new EJBBeanAttributesImpl<T>(beanContext, BeanAttributesBuilder.forContext(webBeansContext).newBeanAttibutes(at).build()), beanClass, factory); this.beanContext = beanContext; beanContext.set(Bean.class, this); passivatingId = beanContext.getDeploymentID() + getReturnType().getName(); isDependentAndStateful = getScope().equals(Dependent.class) && BeanType.STATEFUL.equals(beanContext.getComponentType()); }
public <T> BeanAttributes<T> createBeanAttributes(final AnnotatedType<T> type) { return new CdiEjbBean.EJBBeanAttributesImpl( findBeanContext(webBeansContext, type.getJavaClass()), BeanAttributesBuilder.forContext(webBeansContext).newBeanAttibutes(type).build()); }
public EJBBeanAttributesImpl(final BeanContext bc, final BeanAttributes<T> beanAttributes) { super(beanAttributes, false); this.beanContext = bc; this.ejbTypes = new HashSet<Type>(); initTypes(); }