Class InjectionTargetBean<T>

  • Type Parameters:
    T - bean class
    All Implemented Interfaces:
    Serializable, javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.BeanAttributes<T>, javax.enterprise.inject.spi.PassivationCapable, OwbBean<T>
    Direct Known Subclasses:
    DecoratorBean, InterceptorBean, ManagedBean

    public class InjectionTargetBean<T>
    extends AbstractOwbBean<T>
    implements Serializable
    Abstract class for injection target beans.
    Version:
    $Rev$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • InjectionTargetBean

        public InjectionTargetBean​(WebBeansContext webBeansContext,
                                   WebBeansType webBeansType,
                                   javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                   javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
                                   Class<T> beanClass)
      • InjectionTargetBean

        public InjectionTargetBean​(WebBeansContext webBeansContext,
                                   WebBeansType webBeansType,
                                   javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
                                   javax.enterprise.inject.spi.BeanAttributes<T> beanAttributes,
                                   Class<T> beanClass,
                                   javax.enterprise.inject.spi.InjectionTargetFactory<T> factory)
        Initializes the InjectionTarget Bean part.
    • Method Detail

      • defineInterceptorsIfNeeded

        public void defineInterceptorsIfNeeded()
      • getProducer

        public javax.enterprise.inject.spi.InjectionTarget<T> getProducer()
        Specified by:
        getProducer in interface OwbBean<T>
        Returns:
        the producer for this bean;
      • getInjectionTarget

        public javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
      • getAnnotatedType

        public javax.enterprise.inject.spi.AnnotatedType<T> getAnnotatedType()