org.apache.webbeans.spi
Interface ScannerService


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.

Version:
$Rev$ $Date$

Method Summary
 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.
 void scan()
          Perform the actual class scanning.
 

Method Detail

init

void init(Object object)
Any initializtion action that is required by the implementors.

Parameters:
object - initialization object

scan

void scan()
Perform the actual class scanning.


getBeanXmls

Set<URL> getBeanXmls()
Gets xml configuration files that are occured in the deployment archives.

Returns:
the locations of the beans.xml files.

getBeanClasses

Set<Class<?>> getBeanClasses()
Gets beans classes that are found in the deployment archives.

Returns:
bean classes


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