Class AbstractBean<T,​S>

    • Field Detail

      • type

        protected Class<T> type
    • Constructor Detail

      • AbstractBean

        public AbstractBean​(BeanAttributes<T> attributes,
                            org.jboss.weld.serialization.spi.BeanIdentifier identifier,
                            BeanManagerImpl beanManager)
        Constructor
        Parameters:
        beanManager - The Bean manager
    • Method Detail

      • initializeAfterBeanDiscovery

        public void initializeAfterBeanDiscovery()
        Description copied from class: RIBean
        In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. for initializing decorators taking into account the possibility of having custom decorators which are deployed through portable extensions)
        Specified by:
        initializeAfterBeanDiscovery in class RIBean<T>
      • checkType

        protected abstract void checkType()
      • checkSpecialization

        public void checkSpecialization()
        Validates specialization if this bean specializes another bean.
      • postSpecialize

        protected void postSpecialize()
      • preSpecialize

        protected void preSpecialize()
      • specialize

        protected void specialize()
      • getAnnotated

        public abstract Annotated getAnnotated()
        Returns the annotated item the bean represents
        Returns:
        The annotated item
      • getEnhancedAnnotated

        public abstract EnhancedAnnotated<T,​S> getEnhancedAnnotated()
        Returns the weld-enhanced annotated item the bean represents. The item is only available during bootstrap. The method throws IllegalStateException at runtime.
        Returns:
        The annotated item
        Throws:
        IllegalStateException - when invoked at runtime
      • getSpecializedBeans

        protected Set<? extends AbstractBean<?,​?>> getSpecializedBeans()
      • getType

        public Class<T> getType()
        Gets the type of the bean
        Specified by:
        getType in class RIBean<T>
        Returns:
        The type
      • isSpecializing

        public boolean isSpecializing()
      • getProducer

        public Producer<T> getProducer()
      • setProducer

        public void setProducer​(Producer<T> producer)
        Set a Producer for this bean. This operation is *not* threadsafe, and should not be called outside bootstrap.
      • isIgnoreFinalMethods

        public boolean isIgnoreFinalMethods()
      • setIgnoreFinalMethods

        public void setIgnoreFinalMethods()