Interface ClassBean<T>

  • Type Parameters:
    T - the type of the bean instance
    All Superinterfaces:
    jakarta.enterprise.inject.spi.Bean<T>, jakarta.enterprise.inject.spi.BeanAttributes<T>, jakarta.enterprise.context.spi.Contextual<T>, WeldBean<T>
    All Known Subinterfaces:
    SessionBean<T>
    All Known Implementing Classes:
    AbstractClassBean, DecoratorImpl, InterceptorImpl, ManagedBean, NewManagedBean

    public interface ClassBean<T>
    extends WeldBean<T>
    Marker for Bean implementations that are defined by a Java class.
    Author:
    Jozef Hartinger
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SlimAnnotatedType<T> getAnnotated()
      Returns the annotated type that defines this bean
      BeanManagerImpl getBeanManager()
      Returns the BeanManager used by this bean.
      EnhancedAnnotatedType<T> getEnhancedAnnotated()
      Returns enhanced annotated type metadata.
      jakarta.enterprise.inject.spi.InjectionTarget<T> getProducer()
      Returns injection target used to produce instances of this bean
      • Methods inherited from interface jakarta.enterprise.inject.spi.Bean

        getBeanClass, getInjectionPoints, isNullable
      • Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes

        getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
      • Methods inherited from interface jakarta.enterprise.context.spi.Contextual

        create, destroy
    • Method Detail

      • getAnnotated

        SlimAnnotatedType<T> getAnnotated()
        Returns the annotated type that defines this bean
        Returns:
        annotated type
      • getBeanManager

        BeanManagerImpl getBeanManager()
        Returns the BeanManager used by this bean.
        Returns:
        bean manager used by this bean
      • getProducer

        jakarta.enterprise.inject.spi.InjectionTarget<T> getProducer()
        Returns injection target used to produce instances of this bean
        Returns:
        the injection target