org.jboss.weld.environment.servlet.deployment
Class URLScanner

java.lang.Object
  extended by org.jboss.weld.environment.servlet.deployment.AbstractScanner
      extended by org.jboss.weld.environment.servlet.deployment.URLScanner
All Implemented Interfaces:
Scanner

public class URLScanner
extends AbstractScanner

Implementation of Scanner which can scan a URLClassLoader

Author:
Thomas Heute, Gavin King, Norman Richards, Pete Muir

Constructor Summary
URLScanner(java.lang.ClassLoader classLoader, WebAppBeanDeploymentArchive webBeanDiscovery)
           
 
Method Summary
protected  void handle(java.util.Set<java.lang.String> paths)
           
 void scanDirectories(java.io.File[] directories)
          Recursively scan directories.
 void scanResources(java.lang.String[] resources)
          Scan for structures which contain any of the given resources in their root
 
Methods inherited from class org.jboss.weld.environment.servlet.deployment.AbstractScanner
filenameToClassname, getClassLoader, handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLScanner

public URLScanner(java.lang.ClassLoader classLoader,
                  WebAppBeanDeploymentArchive webBeanDiscovery)
Method Detail

scanDirectories

public void scanDirectories(java.io.File[] directories)
Description copied from interface: Scanner
Recursively scan directories.

Parameters:
directories - An array of the roots of the directory trees to scan

scanResources

public void scanResources(java.lang.String[] resources)
Description copied from interface: Scanner
Scan for structures which contain any of the given resources in their root

Parameters:
resources - The resources to scan for

handle

protected void handle(java.util.Set<java.lang.String> paths)


Copyright © 2008-2009 Seam Framework. All Rights Reserved.