public abstract class AbstractMetaDataDiscovery extends Object implements ScannerService
Modifier and Type | Field and Description |
---|---|
protected CdiArchive |
archive |
protected BDABeansXmlScanner |
bdaBeansXmlScanner |
protected org.apache.xbean.finder.AnnotationFinder |
finder |
protected boolean |
isBDAScannerEnabled |
protected ClassLoader |
loader |
protected static Logger |
logger |
static String |
META_INF_BEANS_XML |
Constructor and Description |
---|
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 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) |
BDABeansXmlScanner |
getBDABeansXmlScanner()
Gets BDABeansXMLScanner used to determine the beans.xml
modifiers (interceptors, decorators, and, alternatives) that
are enabled per BDA.
|
Set<Class<?>> |
getBeanClasses()
Gets beans classes that are found in the
deployment archives.
|
Set<URL> |
getBeanXmls()
Gets xml configuration files that are occured
in the deployment archives.
|
protected Iterable<URL> |
getUrls() |
void |
init(Object object)
Any initializtion action that is
required by the implementors.
|
protected org.apache.xbean.finder.AnnotationFinder |
initFinder() |
boolean |
isBDABeansXmlScanningEnabled()
Indicates if BDABeansXmlScanner is available.
|
void |
release()
This method will get called once the information found by the current
scan is not needed anymore and the ScannerService might free up
resources.
|
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 ClassLoader loader
protected CdiArchive archive
protected org.apache.xbean.finder.AnnotationFinder finder
protected boolean isBDAScannerEnabled
protected BDABeansXmlScanner bdaBeansXmlScanner
protected org.apache.xbean.finder.AnnotationFinder initFinder()
public void scan() throws WebBeansDeploymentException
scan
in interface ScannerService
WebBeansConfigurationException
- if any run time exception occursWebBeansDeploymentException
public void release()
ScannerService
release
in interface ScannerService
protected 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)
ScannerService
init
in interface ScannerService
object
- initialization objectprotected void addWebBeansXmlLocation(URL beansXmlUrl)
beansXmlUrl
- location pathpublic Set<Class<?>> getBeanClasses()
ScannerService
getBeanClasses
in interface ScannerService
public Set<URL> getBeanXmls()
ScannerService
getBeanXmls
in interface ScannerService
public BDABeansXmlScanner getBDABeansXmlScanner()
ScannerService
getBDABeansXmlScanner
in interface ScannerService
public boolean isBDABeansXmlScanningEnabled()
ScannerService
isBDABeansXmlScanningEnabled
in interface ScannerService
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.