org.apache.webbeans.corespi.scanner
Class AbstractMetaDataDiscovery

java.lang.Object
  extended by org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery
All Implemented Interfaces:
ScannerService
Direct Known Subclasses:
DefaultScannerService, OpenWebBeansTestMetaDataDiscoveryService

public abstract class AbstractMetaDataDiscovery
extends Object
implements ScannerService


Constructor Summary
protected AbstractMetaDataDiscovery()
           
 
Method Summary
protected  void addWebBeansXmlLocation(URL file)
          add the given beans.xml path to the locations list
protected abstract  void configure()
           
protected  org.scannotation.AnnotationDB getAnnotationDB()
           
 Set<Class<?>> getBeanClasses()
           
 Set<URL> getBeanXmls()
           
 void init(Object object)
           
 void scan()
          Configure the Web Beans Container with deployment information and fills annotation database and beans.xml stream database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMetaDataDiscovery

protected AbstractMetaDataDiscovery()
Method Detail

scan

public void scan()
          throws WebBeansDeploymentException
Configure the Web Beans Container with deployment information and fills annotation database and beans.xml stream database.

Specified by:
scan in interface ScannerService
Throws:
WebBeansConfigurationException - if any run time exception occurs
WebBeansDeploymentException

configure

protected abstract void configure()
                           throws Exception
Throws:
Exception

init

public void init(Object object)
Specified by:
init in interface ScannerService

getAnnotationDB

protected org.scannotation.AnnotationDB getAnnotationDB()
Returns:
the aNNOTATION_DB

addWebBeansXmlLocation

protected void addWebBeansXmlLocation(URL file)
add the given beans.xml path to the locations list

Parameters:
file - location path

getBeanClasses

public Set<Class<?>> getBeanClasses()
Specified by:
getBeanClasses in interface ScannerService

getBeanXmls

public Set<URL> getBeanXmls()
Specified by:
getBeanXmls in interface ScannerService


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