public abstract class AbstractMetaDataDiscovery extends Object implements ScannerService
| Modifier and Type | Field and Description |
|---|---|
protected BDABeansXmlScanner |
bdaBeansXmlScanner |
protected boolean |
isBDAScannerEnabled |
protected static Logger |
logger |
static String |
META_INF_BEANS_XML |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMetaDataDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addWebBeansXmlLocation(URL beansXmlUrl)
add the given beans.xml path to the locations list
|
protected abstract void |
configure() |
protected void |
crossReferenceBeans()
Ensure that all Annotation CrossReferences got resolved.
|
protected String[] |
findBeansXmlBases(String resourceName,
ClassLoader loader)
Find the base paths of all available resources with the given
resourceName in the classpath.
|
Set<String> |
getAllAnnotations(String className) |
protected AnnotationDB |
getAnnotationDB() |
BDABeansXmlScanner |
getBDABeansXmlScanner() |
Set<Class<?>> |
getBeanClasses() |
Set<URL> |
getBeanXmls() |
void |
init(Object object) |
boolean |
isBDABeansXmlScanningEnabled() |
void |
release() |
void |
scan()
Configure the Web Beans Container with deployment information and fills
annotation database and beans.xml stream database.
|
protected static final Logger logger
public static final String META_INF_BEANS_XML
protected boolean isBDAScannerEnabled
protected BDABeansXmlScanner bdaBeansXmlScanner
public void scan()
throws WebBeansDeploymentException
scan in interface ScannerServiceWebBeansConfigurationException - if any run time exception occursWebBeansDeploymentExceptionpublic void release()
release in interface ScannerServiceprotected abstract void configure()
protected String[] findBeansXmlBases(String resourceName, ClassLoader loader)
resourceName - the name of the resource, e.g. 'META-INF/beans.xml'loader - the ClassLoader which should be usedpublic void init(Object object)
init in interface ScannerServiceprotected AnnotationDB getAnnotationDB()
public Set<String> getAllAnnotations(String className)
getAllAnnotations in interface ScannerServiceprotected void addWebBeansXmlLocation(URL beansXmlUrl)
beansXmlUrl - location pathpublic Set<Class<?>> getBeanClasses()
getBeanClasses in interface ScannerServiceprotected void crossReferenceBeans()
public Set<URL> getBeanXmls()
getBeanXmls in interface ScannerServicepublic BDABeansXmlScanner getBDABeansXmlScanner()
getBDABeansXmlScanner in interface ScannerServicepublic boolean isBDABeansXmlScanningEnabled()
isBDABeansXmlScanningEnabled in interface ScannerServiceCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.