org.jboss.seam.deployment
Class URLScanner

java.lang.Object
  extended by org.jboss.seam.deployment.AbstractScanner
      extended by org.jboss.seam.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(DeploymentStrategy deploymentStrategy)
           
 
Method Summary
 long getTimestamp()
           
protected  void handle(Set<String> paths)
           
 void scanDirectories(File[] directories)
          Recursively scan directories, skipping directories in the exclusion list.
 void scanDirectories(File[] directories, File[] excludedDirectories)
          Recursively scan directories, skipping directories in the exclusion list.
 void scanResources(String[] resources)
          Scan for structures which contain any of the given resources in their root
 
Methods inherited from class org.jboss.seam.deployment.AbstractScanner
getDeploymentStrategy, handle, handleItem, hasAnnotations, loadClassFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLScanner

public URLScanner(DeploymentStrategy deploymentStrategy)
Method Detail

scanDirectories

public void scanDirectories(File[] directories)
Description copied from interface: Scanner
Recursively scan directories, skipping directories in the exclusion list.

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

scanDirectories

public void scanDirectories(File[] directories,
                            File[] excludedDirectories)
Description copied from interface: Scanner
Recursively scan directories, skipping directories in the exclusion list.

Specified by:
scanDirectories in interface Scanner
Overrides:
scanDirectories in class AbstractScanner
Parameters:
directories - An array of the roots of the directory trees to scan
excludedDirectories - Directories to skip over during the recursive scan

scanResources

public void scanResources(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(Set<String> paths)

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface Scanner
Overrides:
getTimestamp in class AbstractScanner