javax.enterprise.inject.spi
Interface AfterTypeDiscovery


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.

Author:
Pete Muir

Method Summary
 void addAnnotatedType(AnnotatedType<?> type)
          Adds a given AnnotatedType 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)
Adds a given AnnotatedType to the set of types which will be scanned during bean discovery.

Parameters:
type - The AnnotatedType to add for later scanning


Copyright © 2008-2013 JBoss by Red Hat, Inc.. All Rights Reserved.