org.apache.webbeans.corespi.scanner
Class AbstractMetaDataDiscovery
java.lang.Object
org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
- All Implemented Interfaces:
- ScannerService
- Direct Known Subclasses:
- DefaultScannerService, OpenWebBeansTestMetaDataDiscoveryService
public abstract class AbstractMetaDataDiscovery
- extends java.lang.Object
- implements ScannerService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final WebBeansLogger logger
META_INF_BEANS_XML
public static final java.lang.String META_INF_BEANS_XML
- See Also:
- Constant Field Values
isBDAScannerEnabled
protected boolean isBDAScannerEnabled
bdaBeansXmlScanner
protected BDABeansXmlScanner bdaBeansXmlScanner
AbstractMetaDataDiscovery
protected AbstractMetaDataDiscovery()
scan
public void scan()
throws WebBeansDeploymentException
- Configure the Web Beans Container with deployment information and fills
annotation database and beans.xml stream database.
- Specified by:
scan in interface ScannerService
- Throws:
WebBeansConfigurationException - if any run time exception occurs
WebBeansDeploymentException
release
public void release()
- Specified by:
release in interface ScannerService
configure
protected abstract void configure()
findBeansXmlBases
protected java.lang.String[] findBeansXmlBases(java.lang.String resourceName,
java.lang.ClassLoader loader)
- Find the base paths of all available resources with the given
resourceName in the classpath.
The returned Strings will NOT contain the resourceName itself!
- Parameters:
resourceName - the name of the resource, e.g. 'META-INF/beans.xml'loader - the ClassLoader which should be used
- Returns:
- array of Strings with the URL path to the resources.
init
public void init(java.lang.Object object)
- Specified by:
init in interface ScannerService
getAnnotationDB
protected AnnotationDB getAnnotationDB()
- Returns:
- the aNNOTATION_DB
getAllAnnotations
public java.util.Set<java.lang.String> getAllAnnotations(java.lang.String className)
- Specified by:
getAllAnnotations in interface ScannerService
addWebBeansXmlLocation
protected void addWebBeansXmlLocation(java.lang.String beansXmlLocation)
- add the given beans.xml path to the locations list
- Parameters:
beansXmlLocation - location path
getBeanClasses
public java.util.Set<java.lang.Class<?>> getBeanClasses()
- Specified by:
getBeanClasses in interface ScannerService
crossReferenceBeans
protected void crossReferenceBeans()
- Ensure that all Annotation CrossReferences got resolved.
getBeanXmls
public java.util.Set<java.lang.String> getBeanXmls()
- Specified by:
getBeanXmls in interface ScannerService
getBDABeansXmlScanner
public BDABeansXmlScanner getBDABeansXmlScanner()
- Specified by:
getBDABeansXmlScanner in interface ScannerService
isBDABeansXmlScanningEnabled
public boolean isBDABeansXmlScanningEnabled()
- Specified by:
isBDABeansXmlScanningEnabled in interface ScannerService
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.