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 ScannerServiceWebBeansConfigurationException - if any run time exception occursWebBeansDeploymentExceptionpublic void release()
ScannerServicerelease 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)
ScannerServiceinit in interface ScannerServiceobject - initialization objectprotected void addWebBeansXmlLocation(URL beansXmlUrl)
beansXmlUrl - location pathpublic Set<Class<?>> getBeanClasses()
ScannerServicegetBeanClasses in interface ScannerServicepublic Set<URL> getBeanXmls()
ScannerServicegetBeanXmls in interface ScannerServicepublic BDABeansXmlScanner getBDABeansXmlScanner()
ScannerServicegetBDABeansXmlScanner in interface ScannerServicepublic boolean isBDABeansXmlScanningEnabled()
ScannerServiceisBDABeansXmlScanningEnabled in interface ScannerServiceCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.