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
 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, handleItem
 
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

Parameters:
directories - An array of the roots of the directory trees to 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