org.apache.webbeans.web.scanner
Class WebScannerService

java.lang.Object
  extended by org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
      extended by org.apache.webbeans.web.scanner.WebScannerService
All Implemented Interfaces:
ScannerService

public class WebScannerService
extends AbstractMetaDataDiscovery

Configures the web application to find beans.


Field Summary
protected  javax.servlet.ServletContext servletContext
           
 
Fields inherited from class org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
bdaBeansXmlScanner, isBDAScannerEnabled, META_INF_BEANS_XML
 
Constructor Summary
WebScannerService()
           
 
Method Summary
protected  void configure()
           
protected  Set<String> createURLFromMarkerFile()
           
protected  String createURLFromWARFile()
          Returns the web application class path if it contains a beans.xml marker file.
 void init(Object context)
           
 
Methods inherited from class org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
addWebBeansXmlLocation, crossReferenceBeans, findBeansXmlBases, getAllAnnotations, getAnnotationDB, getBDABeansXmlScanner, getBeanClasses, getBeanXmls, isBDABeansXmlScanningEnabled, release, scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContext

protected javax.servlet.ServletContext servletContext
Constructor Detail

WebScannerService

public WebScannerService()
Method Detail

init

public void init(Object context)
Specified by:
init in interface ScannerService
Overrides:
init in class AbstractMetaDataDiscovery

configure

protected void configure()
Specified by:
configure in class AbstractMetaDataDiscovery

createURLFromMarkerFile

protected Set<String> createURLFromMarkerFile()
                                       throws Exception
Throws:
Exception

createURLFromWARFile

protected String createURLFromWARFile()
                               throws Exception
Returns the web application class path if it contains a beans.xml marker file.

Returns:
the web application class path
Throws:
Exception - if any exception occurs


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.