Class AbstractFacadeBean<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.BeanAttributes<T>, javax.enterprise.inject.spi.PassivationCapable, DecorableBean<T>, WeldBean<T>
    Direct Known Subclasses:
    EventBean, InstanceBean

    public abstract class AbstractFacadeBean<T>
    extends AbstractDecorableBuiltInBean<T>
    The built-in bean for facade objects. Since special rules are applied for resolving facade beans, we need to resolve decorators per bean instance based on the required bean type.
    Author:
    Jozef Hartinger
    • Method Detail

      • destroy

        public void destroy​(T instance,
                            javax.enterprise.context.spi.CreationalContext<T> creationalContext)
        Specified by:
        destroy in interface javax.enterprise.context.spi.Contextual<T>
        Overrides:
        destroy in class RIBean<T>
      • 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)
        Overrides:
        initializeAfterBeanDiscovery in class AbstractBuiltInBean<T>
      • getDefaultType

        protected abstract Type getDefaultType()