Add a bean. This is intended for test sources where we do not want to add beans.xml as this would add all test classes as beans. The bean will be added by default with ApplicationScoped. The class will be instantiated using CDI and will be available for injection into test classes and other beans. This annotation can be repeated.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Class of the bean.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Class<? extends Annotation>
    Scope of the bean.
  • Element Details