javax.enterprise.inject.spi

Interface BeforeBeanDiscovery


  • public interface BeforeBeanDiscovery

    This event type is thrown by the container before the bean discovery process begins. If any observer method of the BeforeBeanDiscovery event throws an exception, the exception is treated as a definition error by the container.

    Author:
    Pete Muir, David Allen
    • Method Detail

      • addQualifier

        void addQualifier(Class<? extends Annotation> qualifier)

        Declares an annotation type as a Qualifier qualifier type.

        This is only required if you wish to make an annotation a qualifier without adding Qualifier to it.

        Parameters:
        qualifier - The annotation to treat as a qualifier
      • addQualifier

        void addQualifier(AnnotatedType<? extends Annotation> qualifier)

        Declares an annotation type as a Qualifier qualifier type.

        This is only required if you wish to make an annotation a qualifier without adding Qualifier to it.

        Parameters:
        qualifier - The annotation to treat as a qualifier
        Since:
        1.1
      • addStereotype

        void addStereotype(Class<? extends Annotation> stereotype,
                           Annotation... stereotypeDef)

        Declares an annotation type as a stereotype, and specifies its meta-annotations.

        This is only required if you wish to make an annotation a stereotype without adding Stereotype to it. You can also use this method to override an existing stereotype definition.

        Parameters:
        stereotype - The annotation type to treat as a stereotype
        stereotypeDef - An optional list of annotations defining the stereotype
      • addInterceptorBinding

        void addInterceptorBinding(AnnotatedType<? extends Annotation> bindingType)

        Declares an annotation type as an interceptor binding type.

        This is only required if you wish to make an annotation an interceptor binding type without adding InterceptorBinding to it.

        Parameters:
        bindingType - The annotation type to treat as an interceptor binding type
      • addInterceptorBinding

        void addInterceptorBinding(Class<? extends Annotation> bindingType,
                                   Annotation... bindingTypeDef)

        Declares an annotation type as an interceptor binding type, and specifies its meta-annotations.

        This is only required if you wish to make an annotation an interceptor binding type without adding InterceptorBinding to it.

        Parameters:
        bindingType - The annotation type to treat as an interceptor binding type
        bindingTypeDef - An optional list of annotations defining the interceptor
        Since:
        1.1

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/enterprise/inject/spi/beforebeandiscovery.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.