Package org.apache.webbeans.corespi.se
Class DefaultBDABeansXmlScanner
- java.lang.Object
-
- org.apache.webbeans.corespi.se.DefaultBDABeansXmlScanner
-
- All Implemented Interfaces:
org.apache.webbeans.spi.BDABeansXmlScanner
public class DefaultBDABeansXmlScanner extends Object implements org.apache.webbeans.spi.BDABeansXmlScanner
Tracks contents of each BDA's beans.xml to determine the interceptor, alternative, decorator, or etc that is applicable for a given BDA.
-
-
Constructor Summary
Constructors Constructor Description DefaultBDABeansXmlScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAlternative(Class<?> alternativeClass, String beansXMLFilePath)Stores the beans.xml an Alternative class is defined inbooleanaddDecorator(Class<?> decoratorClass, String beansXMLFilePath)Stores the beans.xml a Decorator class is defined inbooleanaddInterceptor(Class<?> interceptorClass, String beansXMLFilePath)Stores the beans.xml an Interceptor class is defined inbooleanaddStereoType(Class<? extends Annotation> stereoTypeClass, String beansXMLFilePath)Stores the beans.xml a Stereotype class is defined inSet<Class<?>>getAlternatives(String beansXMLFilePath)StringgetBeansXml(Class<?> class1)Set<Class<?>>getDecorators(String beansXMLFilePath)Set<Class<?>>getInterceptors(String beansXMLFilePath)Set<Class<? extends Annotation>>getStereotypes(String beansXMLFilePath)voidsetBeansXml(Class<?> class1, String beansXmlFilePath)
-
-
-
Method Detail
-
addInterceptor
public boolean addInterceptor(Class<?> interceptorClass, String beansXMLFilePath)
Stores the beans.xml an Interceptor class is defined in- Specified by:
addInterceptorin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Returns:
- T - Interceptor class successfully stored; F - Interceptor class already exists and was not stored.
-
getInterceptors
public Set<Class<?>> getInterceptors(String beansXMLFilePath)
- Specified by:
getInterceptorsin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Parameters:
beansXMLFilePath-- Returns:
- a non-null set of Interceptors defined by the specified beansXMLFilePath
-
getDecorators
public Set<Class<?>> getDecorators(String beansXMLFilePath)
- Specified by:
getDecoratorsin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Parameters:
beansXMLFilePath-- Returns:
- a non-null set of Decorators defined by the specified beansXMLFilePath
-
addDecorator
public boolean addDecorator(Class<?> decoratorClass, String beansXMLFilePath)
Stores the beans.xml a Decorator class is defined in- Specified by:
addDecoratorin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Returns:
- T - Decorator class successfully stored; F - Decorator class already exists and was not stored.
-
addAlternative
public boolean addAlternative(Class<?> alternativeClass, String beansXMLFilePath)
Stores the beans.xml an Alternative class is defined in- Specified by:
addAlternativein interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Returns:
- T - Alternative class successfully stored; F - Alternative class already exists and was not stored.
-
addStereoType
public boolean addStereoType(Class<? extends Annotation> stereoTypeClass, String beansXMLFilePath)
Stores the beans.xml a Stereotype class is defined in- Specified by:
addStereoTypein interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Returns:
- T - Stereotype class successfully stored; F - Stereotype class already exists and was not stored.
-
getAlternatives
public Set<Class<?>> getAlternatives(String beansXMLFilePath)
- Specified by:
getAlternativesin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Parameters:
beansXMLFilePath-- Returns:
- a non-null set of Alternatives defined by the specified beansXMLFilePath
-
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes(String beansXMLFilePath)
- Specified by:
getStereotypesin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Parameters:
beansXMLFilePath-- Returns:
- a non-null set of Stereotypes defined by the specified beansXMLFilePath
-
getBeansXml
public String getBeansXml(Class<?> class1)
- Specified by:
getBeansXmlin interfaceorg.apache.webbeans.spi.BDABeansXmlScanner- Parameters:
class1- deployed class- Returns:
- A String representing the file path to the beans.xml of the specified class's BDA
-
-