org.apache.webbeans.xml
Class WebBeansXMLConfigurator

java.lang.Object
  extended by org.apache.webbeans.xml.WebBeansXMLConfigurator

public final class WebBeansXMLConfigurator
extends Object

Configures the web beans from the xml declerations.


Constructor Summary
WebBeansXMLConfigurator()
          Creates a new instance of the WebBeansXMLConfigurator
 
Method Summary
 void configure(InputStream xmlStream)
          Configures XML configuration file.
 void configure(InputStream xmlStream, String fileName)
          Configures XML configuration file.
 void configureOwbSpecific(InputStream xmlStream, String fileName)
          Configures the web beans from the given input stream.
<T> void
configureProducerTypeLevelMetaData(AbstractOwbBean<T> component, List<Class<? extends Annotation>> annotationSet, List<Element> annotationElementList, Element webBeanDecleration)
          Configures the type level meta data of the webbeans component.
<T> XMLManagedBean<T>
configureSimpleWebBean(Class<T> simpleClass, Element webBeanDecleration)
          Configures the simple webbean from the class.
 void configureSpecSpecific(InputStream xmlStream, String fileName)
          Configures the web beans from the given input stream.
<T> void
configureTypeLevelMetaData(XMLManagedBean<T> component, List<Class<? extends Annotation>> annotationSet, List<Element> annotationElementList, Element webBeanDecleration)
          Configures the type level meta data of the webbeans component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBeansXMLConfigurator

public WebBeansXMLConfigurator()
Creates a new instance of the WebBeansXMLConfigurator

Method Detail

configure

public void configure(InputStream xmlStream)
Configures XML configuration file.

Parameters:
xmlStream - xml configuration file

configure

public void configure(InputStream xmlStream,
                      String fileName)
Configures XML configuration file.

Parameters:
xmlStream - xml configuration file
fileName - file name

configureOwbSpecific

public void configureOwbSpecific(InputStream xmlStream,
                                 String fileName)
Configures the web beans from the given input stream.

Parameters:
xmlStream - xml file containing the web beans definitions.
fileName - name of the configuration file

configureSpecSpecific

public void configureSpecSpecific(InputStream xmlStream,
                                  String fileName)
Configures the web beans from the given input stream.

Parameters:
xmlStream - xml file containing the web beans definitions.
fileName - name of the configuration file

configureSimpleWebBean

public <T> XMLManagedBean<T> configureSimpleWebBean(Class<T> simpleClass,
                                                    Element webBeanDecleration)
Configures the simple webbean from the class.

Parameters:
simpleClass - concrete java class defined in XML
webBeanDecleration - webbeans decleration root element

configureTypeLevelMetaData

public <T> void configureTypeLevelMetaData(XMLManagedBean<T> component,
                                           List<Class<? extends Annotation>> annotationSet,
                                           List<Element> annotationElementList,
                                           Element webBeanDecleration)
Configures the type level meta data of the webbeans component.

Parameters:
component - xml webbeans component
annotationSet - type level annotation set
webBeanDecleration - webbeans decleration element

configureProducerTypeLevelMetaData

public <T> void configureProducerTypeLevelMetaData(AbstractOwbBean<T> component,
                                                   List<Class<? extends Annotation>> annotationSet,
                                                   List<Element> annotationElementList,
                                                   Element webBeanDecleration)
Configures the type level meta data of the webbeans component.

Parameters:
component - xml webbeans component
annotationSet - type level annotation set
webBeanDecleration - webbeans decleration element


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.