-
public interface AfterTypeDiscovery
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.
- Since:
- 1.1
- Author:
- Pete Muir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addAnnotatedType(AnnotatedType<?> type, String id)
Adds a givenAnnotatedType
to the set of types which will be scanned during bean discovery.List<Class<?>>
getAlternatives()
List<Class<?>>
getDecorators()
List<Class<?>>
getInterceptors()
-
-
-
Method Detail
-
getAlternatives
List<Class<?>> getAlternatives()
- Returns:
- the ordered list of enabled alternatives of the bean deployment archive
-
getInterceptors
List<Class<?>> getInterceptors()
- Returns:
- the ordered list of enabled interceptors of the bean deployment archive.
-
getDecorators
List<Class<?>> getDecorators()
- Returns:
- the ordered list of enabled decorators of the bean deployment archive
-
addAnnotatedType
void addAnnotatedType(AnnotatedType<?> type, String id)
Adds a given
AnnotatedType
to the set of types which will be scanned during bean discovery.This method allows multiple annotated types, based on the same underlying type, to be defined.
AnnotatedType
s discovered by the container use the fully qualified class name ofAnnotatedType.getJavaClass()
to identify the type.AfterBeanDiscovery.getAnnotatedType(Class, String)
andAfterBeanDiscovery.getAnnotatedTypes(Class)
allows annotated types to be obtained by identifier.- Parameters:
type
- TheAnnotatedType
to add for later scanning
-
-
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/aftertypediscovery.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
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.