Package javax.enterprise.inject.spi
Interface AfterTypeDiscovery
-
public interface AfterTypeDiscoveryThis event will get fired after the container has completed the class scanning process and all AnnotatedTypes got discovered from the classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAnnotatedType(AnnotatedType<?> type, java.lang.String id)Allows to a synthetic annotated type.java.util.List<java.lang.Class<?>>getAlternatives()This method can be used to remove and addAlternatives, but also to change the sorting orderAlternatives which are only enabled in a certain BeanArchive are not included in this list.java.util.List<java.lang.Class<?>>getDecorators()This method can be used to remove and add enabled Decorators, but also to change the sorting order.java.util.List<java.lang.Class<?>>getInterceptors()This method can be used to remove and add enabled CDI Interceptors, but also to change the sorting order.
-
-
-
Method Detail
-
getAlternatives
java.util.List<java.lang.Class<?>> getAlternatives()
This method can be used to remove and addAlternatives, but also to change the sorting orderAlternatives which are only enabled in a certain BeanArchive are not included in this list.- Returns:
- the ordered, mutable List of enabled
Alternatives
-
getInterceptors
java.util.List<java.lang.Class<?>> getInterceptors()
This method can be used to remove and add enabled CDI Interceptors, but also to change the sorting order. Interceptors which are only enabled in a certain BeanArchive are not included in this list.- Returns:
- the ordered, mutable List of Classes which are annotated with
Interceptorand globally enabled.
-
getDecorators
java.util.List<java.lang.Class<?>> getDecorators()
This method can be used to remove and add enabled Decorators, but also to change the sorting order. Decorators which are only enabled in a certain BeanArchive are not included in this list.- Returns:
- the ordered, mutable List of Classes which are annotated with
Decoratorand globally enabled.
-
addAnnotatedType
void addAnnotatedType(AnnotatedType<?> type, java.lang.String id)
Allows to a synthetic annotated type. This method shall get used if you like to add a new AnnotatedType for a class which already gets scanned by the container. You should provide an unique id if there is already another AnnotatedType for the same class. The AnnotatedTypes added via this method will not get passed to Extensions viaProcessAnnotatedTypebut only viaProcessSyntheticAnnotatedType- Parameters:
type-id- the unique id ornull- See Also:
AfterBeanDiscovery.getAnnotatedType(Class, String),AfterBeanDiscovery.getAnnotatedTypes(Class)
-
-