javax.enterprise.inject.spi
Interface ProcessModule


public interface ProcessModule

The container fires an event of this type for each, before it processes the classes packaged in that module.

Any observer of this event is permitted to add classes to, or remove classes from, the set of alternatives, list of interceptors or list of decorators. The container will use the final values of these collections, after all observers have been called, to determine the enabled alternatives, interceptors, and decorators for the bean deployment archive. The initial values of these collections is determined by reading the beans.xml file of the bean deployment archive.

If any observer method of a ProcessModule event throws an exception, the exception is treated as a definition error by the container.

Author:
Pete Muir

Method Summary
 Set<Class<?>> getAlternatives()
           
 Iterator<AnnotatedType<?>> getAnnotatedTypes()
           
 InputStream getBeansXml()
           
 List<Class<?>> getDecorators()
           
 List<Class<?>> getInterceptors()
           
 

Method Detail

getAlternatives

Set<Class<?>> getAlternatives()
Returns:
the set of enabled alternatives of the bean deployment archive

getInterceptors

List<Class<?>> getInterceptors()
Returns:
the list of enabled interceptors of the bean deployment archive.

getDecorators

List<Class<?>> getDecorators()
Returns:
the list of enabled decorators of the bean deployment archive

getAnnotatedTypes

Iterator<AnnotatedType<?>> getAnnotatedTypes()
Returns:
an iterator over AnnotatedType objects representing the Java classes and interfaces in the bean archive

getBeansXml

InputStream getBeansXml()
Returns:
an input stream which can be used to read in the beans.xml for this module


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