org.apache.webbeans.spi
Interface BDABeansXmlScanner


public interface BDABeansXmlScanner

due to a file-url issue it isn't compatible with wls (see OWB-519)


Method Summary
 boolean addAlternative(Class<?> alternativeClass, String beansXMLFilePath)
          Stores the beans.xml an Alternative class is defined in
 boolean addDecorator(Class<?> decoratorClass, String beansXMLFilePath)
          Stores the beans.xml a Decorator class is defined in
 boolean addInterceptor(Class<?> interceptorClass, String beansXMLFilePath)
          Stores the beans.xml an Interceptor class is defined in
 boolean addStereoType(Class<? extends Annotation> stereoTypeClass, String beansXMLFilePath)
          Stores the beans.xml a Stereotype class is defined in
 Set<Class<?>> getAlternatives(String beansXMLFilePath)
           
 String getBeansXml(Class<?> class1)
           
 Set<Class<?>> getDecorators(String beansXMLFilePath)
           
 Set<Class<?>> getInterceptors(String beansXMLFilePath)
           
 Set<Class<? extends Annotation>> getStereotypes(String beansXMLFilePath)
           
 void setBeansXml(Class<?> class1, String beansXmlFilePath)
           
 

Method Detail

addInterceptor

boolean addInterceptor(Class<?> interceptorClass,
                       String beansXMLFilePath)
Stores the beans.xml an Interceptor class is defined in

Returns:
T - Interceptor class successfully stored; F - Interceptor class already exists and was not stored.

getInterceptors

Set<Class<?>> getInterceptors(String beansXMLFilePath)
Parameters:
beansXMLFilePath -
Returns:
a non-null set of Interceptors defined by the specified beansXMLFilePath

getDecorators

Set<Class<?>> getDecorators(String beansXMLFilePath)
Parameters:
beansXMLFilePath -
Returns:
a non-null set of Decorators defined by the specified beansXMLFilePath

addDecorator

boolean addDecorator(Class<?> decoratorClass,
                     String beansXMLFilePath)
Stores the beans.xml a Decorator class is defined in

Returns:
T - Decorator class successfully stored; F - Decorator class already exists and was not stored.

addAlternative

boolean addAlternative(Class<?> alternativeClass,
                       String beansXMLFilePath)
Stores the beans.xml an Alternative class is defined in

Returns:
T - Alternative class successfully stored; F - Alternative class already exists and was not stored.

addStereoType

boolean addStereoType(Class<? extends Annotation> stereoTypeClass,
                      String beansXMLFilePath)
Stores the beans.xml a Stereotype class is defined in

Returns:
T - Stereotype class successfully stored; F - Stereotype class already exists and was not stored.

getAlternatives

Set<Class<?>> getAlternatives(String beansXMLFilePath)
Parameters:
beansXMLFilePath -
Returns:
a non-null set of Alternatives defined by the specified beansXMLFilePath

getStereotypes

Set<Class<? extends Annotation>> getStereotypes(String beansXMLFilePath)
Parameters:
beansXMLFilePath -
Returns:
a non-null set of Stereotypes defined by the specified beansXMLFilePath

getBeansXml

String getBeansXml(Class<?> class1)
Parameters:
class1 - deployed class
Returns:
A String representing the file path to the beans.xml of the specified class's BDA

setBeansXml

void setBeansXml(Class<?> class1,
                 String beansXmlFilePath)
Parameters:
class1 - BDA class
beansXmlFilePath - - file path to beans.xml of BDA


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