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.
| Modifier and Type | Method and Description |
|---|---|
| public void | addAnnotatedType(AnnotatedType<?>
The type)javax.enterprise.inject.spi.AnnotatedType to add for later scanning
Adds a given |
| public void | addAnnotatedType(AnnotatedType<?>
The type, String javax.enterprise.inject.spi.AnnotatedType to add for later scanningthe identifier used to distinguish this AnnotatedType from an other one based on the same underlying type id)
Adds a given |
| public <T> AnnotatedTypeConfigurator | Returns: a non reusableAnnotatedTypeConfigurator to configure the new AnnotatedTypeclass used to initialized the type and annotations on the type, String AnnotatedTypeConfiguratorthe identifier used to distinguish this AnnotatedType from an other one based on the same underlying type id)
Obtains a new Thanks to the id parameter, this method allows multiple annotated types, based on the same underlying type, to be defined with a builder. |
| public void | addInterceptorBinding(AnnotatedType<? extends Annotation>
The annotation type to treat as an interceptor binding type bindingType)Declares an annotation type as an interceptor binding type. |
| public void | addInterceptorBinding(Class<? extends Annotation>
The annotation type to treat as an interceptor binding type bindingType, Annotation... An optional list of annotations defining the interceptor bindingTypeDef)Declares an annotation type as an interceptor binding type, and specifies its meta-annotations. |
| public void | addQualifier(Class<? extends Annotation>
The annotation to treat as a qualifier qualifier)Declares an annotation type as a javax.inject.Qualifier qualifier type. |
| public void | addQualifier(AnnotatedType<? extends Annotation>
The annotation to treat as a qualifier qualifier)Declares an annotation type as a javax.inject.Qualifier qualifier type. |
| public void | addScope(Class<? extends Annotation>
The annotation type to treat as a scope type scopeType, boolean Indicates if the scope is normal normal, boolean Indicates if the scope is passivation
capable passivating)Declares an annotation type as a scope type. |
| public void | addStereotype(Class<? extends Annotation>
The annotation type to treat as a stereotype stereotype, Annotation... An optional list of annotations defining the stereotype stereotypeDef)Declares an annotation type as a stereotype, and specifies its meta-annotations. |
| public <T extends Annotation> AnnotatedTypeConfigurator | Returns: a non reusableAnnotatedTypeConfigurator to configure the interceptor bindingThe annotation class used to initialized the configurator bindingType)
Obtains a new |
| public <T extends Annotation> AnnotatedTypeConfigurator | Returns: a non reusableAnnotatedTypeConfigurator to configure the qualifierThe annotation class used to initialized the configurator qualifier)
Obtains a new |
| addAnnotatedType | back to summary |
|---|---|
| public void addAnnotatedType(AnnotatedType<?> type)
Adds a given
This method is deprecated from CDI 1.1 and
| |
| addAnnotatedType | back to summary |
|---|---|
| public void addAnnotatedType(AnnotatedType<?> type, String id)
Adds a given
Thanks to the id parameter, this method allows multiple annotated types, based on the same underlying type, to be defined.
| |
| addAnnotatedType | back to summary |
|---|---|
| public <T> AnnotatedTypeConfigurator
Obtains a new
Thanks to the id parameter, this method allows multiple annotated types, based on the same underlying type, to be defined with a builder.
| |
| addInterceptorBinding | back to summary |
|---|---|
| public 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
| |
| addInterceptorBinding | back to summary |
|---|---|
| public 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
| |
| addQualifier | back to summary |
|---|---|
| public void addQualifier(Class<? extends Annotation> qualifier) Declares an annotation type as a javax.inject.Qualifier qualifier type.
This is only required if you wish to make an annotation a qualifier without adding
| |
| addQualifier | back to summary |
|---|---|
| public void addQualifier(AnnotatedType<? extends Annotation> qualifier) Declares an annotation type as a javax.inject.Qualifier qualifier type.
This is only required if you wish to make an annotation a qualifier without adding
| |
| addScope | back to summary |
|---|---|
| public void addScope(Class<? extends Annotation> scopeType, boolean normal, boolean passivating) Declares an annotation type as a scope type.
This is only required if you wish to make an annotation a scope type without adding the
| |
| addStereotype | back to summary |
|---|---|
| public 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
| |
| configureInterceptorBinding | back to summary |
|---|---|
| public <T extends Annotation> AnnotatedTypeConfigurator
Obtains a new
This is only required if you wish to make an annotation an interceptor binding type without adding
| |
| configureQualifier | back to summary |
|---|---|
| public <T extends Annotation> AnnotatedTypeConfigurator
Obtains a new
This is only required if you wish to make an annotation a qualifier without adding
| |