Enum BeanArchiveService.BeanDiscoveryMode

    • Enum Constant Detail

      • TRIM

        public static final BeanArchiveService.BeanDiscoveryMode TRIM
        Pick up all classes (like with ALL and fire the ProcessAnnotatedType event for them. But only pick up the scanned class as CDI bean:
        • if they have an explicit CDI scope annotation, or
        • if they are an Interceptor or Decorator
        • if they are a JavaEE managed bean
        Contrary to the ALL mode beans without any scope will not get picked up as @Dependent scoped beans!
      • ALL

        public static final BeanArchiveService.BeanDiscoveryMode ALL
        Pick up all classes as CDI beans. Classes with no 'bean defining annotations' will get picked up as @Dependent scoped beans. This is basically the backward compatible mode to CDI-1.0.
      • ANNOTATED

        public static final BeanArchiveService.BeanDiscoveryMode ANNOTATED
        Only classes with a 'bean defining annotation' will get picked up as CDI beans. A 'bean defining annotation' is any CDI or atinject Scope annotation as well as Stereotypes (the later only since CDI-1.2)