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  ServletContext servletContext
           
 
Constructor Summary
WebScannerService()
           
 
Method Summary
protected  void configure()
           
protected  Set<URL> createURLFromMarkerFile()
           
protected  URL createURLFromWARFile()
          Returns URL of the web application class path.
 void init(Object context)
           
 
Methods inherited from class org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
addWebBeansXmlLocation, getAnnotationDB, getBeanClasses, getBeanXmls, scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContext

protected 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()
                  throws Exception
Specified by:
configure in class AbstractMetaDataDiscovery
Throws:
Exception

createURLFromMarkerFile

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

createURLFromWARFile

protected URL createURLFromWARFile()
                            throws Exception
Returns URL of the web application class path.

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


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