JBoss Seam Int JBossAS 6.0.0.GA-redhat-2

org.jboss.seam.integration.jbossas.vfs
Class VFSScanner

java.lang.Object
  extended by org.jboss.seam.deployment.AbstractScanner
      extended by org.jboss.seam.integration.jbossas.vfs.VFSScanner
All Implemented Interfaces:
org.jboss.seam.deployment.Scanner
Direct Known Subclasses:
CachingVFSScanner

public class VFSScanner
extends org.jboss.seam.deployment.AbstractScanner

JBoss VFS aware scanner.

Author:
Ales Justin, Pete Muir

Field Summary
protected static Method handleMethod
           
protected  org.jboss.seam.log.LogProvider log
           
 
Fields inherited from class org.jboss.seam.deployment.AbstractScanner
servletContext
 
Constructor Summary
VFSScanner(org.jboss.seam.deployment.DeploymentStrategy deploymentStrategy)
           
 
Method Summary
protected  org.jboss.vfs.VirtualFile getRoot(URL url, int parentDepth)
          Get the virtual file root.
 long getTimestamp()
           
protected  void handleItem(ModifiableResource resource, String name)
          Handle item.
protected  void handleItemIgnoreErrors(String name)
          Handle item, ignore any errors.
protected  void handleRoot(org.jboss.vfs.VirtualFile root)
          Handle virtual file root.
 void scanDirectories(File[] directories)
           
 void scanDirectories(File[] directories, File[] excludedDirectories)
           
 void scanResources(String[] resources)
           
 
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
 

Field Detail

log

protected final org.jboss.seam.log.LogProvider log

handleMethod

protected static Method handleMethod
Constructor Detail

VFSScanner

public VFSScanner(org.jboss.seam.deployment.DeploymentStrategy deploymentStrategy)
Method Detail

getRoot

protected org.jboss.vfs.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)

scanDirectories

public void scanDirectories(File[] directories,
                            File[] excludedDirectories)
Specified by:
scanDirectories in interface org.jboss.seam.deployment.Scanner
Overrides:
scanDirectories in class org.jboss.seam.deployment.AbstractScanner

scanResources

public void scanResources(String[] resources)

handleRoot

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

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

handleItem

protected void handleItem(ModifiableResource resource,
                          String name)
                   throws IOException
Handle item.

Parameters:
resource - the item's resource
name - the item name
Throws:
IOException - for any error

handleItemIgnoreErrors

protected void handleItemIgnoreErrors(String name)
Handle item, ignore any errors.

Parameters:
name - the item name

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface org.jboss.seam.deployment.Scanner
Overrides:
getTimestamp in class org.jboss.seam.deployment.AbstractScanner

JBoss Seam Int JBossAS 6.0.0.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.