Annotation Type SetBeanDiscoveryMode


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface SetBeanDiscoveryMode
    Sets discovery mode for Weld SE synthetic bean archive. Valid options are BeanDiscoveryMode.ALL and BeanDiscoveryMode.ANNOTATED.

    Starting with Weld 5 (CDI 4), the default value is ANNOTATED. Applications can leverage this annotation to enforce same behavior as older Weld versions where synthetic archives used discovery mode ALL.

    This annotation is equal to invocation of Weld.setBeanDiscoveryMode(BeanDiscoveryMode).

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      org.jboss.weld.bootstrap.spi.BeanDiscoveryMode value  
    • Element Detail

      • value

        org.jboss.weld.bootstrap.spi.BeanDiscoveryMode value