org.jboss.seam.deployment
Class VFSScanner

java.lang.Object
  extended by org.jboss.seam.deployment.AbstractScanner
      extended by org.jboss.seam.deployment.VFSScanner
All Implemented Interfaces:
Scanner

public class VFSScanner
extends AbstractScanner

JBoss VSF aware scanner.

Author:
Ales Justin

Constructor Summary
VFSScanner(DeploymentStrategy deploymentStrategy)
           
 
Method Summary
protected static org.jboss.virtual.VirtualFile getRoot(URL url, int parentDepth)
          Get the virtual file root.
protected  void handleRoot(org.jboss.virtual.VirtualFile root)
          Handle virtual file root.
 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

VFSScanner

public VFSScanner(DeploymentStrategy deploymentStrategy)
Method Detail

getRoot

protected static org.jboss.virtual.VirtualFile getRoot(URL url,
                                                       int parentDepth)
                                                throws IOException
Get the virtual file root.

Parameters:
url - the root URL
parentDepth - level of parent depth
Returns:
actual virtual file from url param
Throws:
IOException - for any error

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

handleRoot

protected void handleRoot(org.jboss.virtual.VirtualFile root)
                   throws IOException
Handle virtual file root.

Parameters:
root - the virtual file root
Throws:
IOException - for any error