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

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

    Modifier and Type
    Method
    Description
    Returns the annotated type that defines this bean
    Returns the BeanManager used by this bean.
    Returns enhanced annotated type metadata.
    jakarta.enterprise.inject.spi.InjectionTarget<T>
    Returns injection target used to produce instances of this bean

    Methods inherited from interface jakarta.enterprise.inject.spi.Bean

    getBeanClass, getInjectionPoints

    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

    Methods inherited from interface org.jboss.weld.bean.WeldBean

    getIdentifier, getPriority
  • Method Details

    • getAnnotated

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

      EnhancedAnnotatedType<T> getEnhancedAnnotated()
      Returns enhanced annotated type metadata. Throws IllegalStateException if called after bootstrap.
      Returns:
      enhanced annotated type metadata
      Throws:
      IllegalStateException - if called after bootstrap
    • 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