This event type is thrown by the container after type discovery is complete. If any observer method of the
AfterTypeDiscovery event throws an exception, the exception is treated as a definition error by the container.
Any observer of this event is permitted to add classes to, or remove classes from, the list of alternatives, list of
interceptors or list of decorators. The container will use the final values of these lists, after all observers have been
called, to determine the enabled alternatives, interceptors, and decorators for application.
Changes made to these lists after the invocation of the last observer method of the AfterTypeDiscovery are ignored.
| Modifier and Type | Method and Description |
|---|---|
| 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 |
| public List | Returns: the list of enabled alternatives for the application, sorted by priority in ascending order. Alternatives enabled for a bean archive are not included.
|
| public List | Returns: the list of enabled decorators for the application, sorted by priority in ascending order. Decorators enabled for a bean archive are not included.
|
| public List | Returns: the list of enabled interceptors for the application, sorted by priority in ascending order. Interceptors enabled for a bean archive are not included.
|
| 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.
| |
| getAlternatives | back to summary |
|---|---|
public List
| |
| getDecorators | back to summary |
|---|---|
public List
| |
| getInterceptors | back to summary |
|---|---|
public List
| |