public interface ScannerService
This SPI is for abstracting the class scanning.
In a production environment Many different modules need to perform class scanning (EJB, JSF, JPA, ...). This SPI allows us to only have one central class scanner for the whole application server which only performs the scanning once at startup of each WebApp.
All URL path Strings in this interface contain the the protocol,
e.g. 'file:/...' we get directly from URL.toExternalForm()
Modifier and Type | Method and Description |
---|---|
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.
|
void |
init(Object object)
Any initializtion action that is
required by the implementors.
|
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()
Perform the actual class scanning.
|
void init(Object object)
object
- initialization objectvoid scan()
void release()
Set<URL> getBeanXmls()
Set<Class<?>> getBeanClasses()
boolean isBDABeansXmlScanningEnabled()
BDABeansXmlScanner getBDABeansXmlScanner()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.