org.jboss.seam.integration.jbossas.vfs
Class VFSScanner
java.lang.Object
org.jboss.seam.deployment.AbstractScanner
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
Fields inherited from class org.jboss.seam.deployment.AbstractScanner |
servletContext |
Constructor Summary |
VFSScanner(org.jboss.seam.deployment.DeploymentStrategy deploymentStrategy)
|
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 |
log
protected final org.jboss.seam.log.LogProvider log
handleMethod
protected static Method handleMethod
VFSScanner
public VFSScanner(org.jboss.seam.deployment.DeploymentStrategy deploymentStrategy)
getRoot
protected org.jboss.vfs.VirtualFile getRoot(URL url,
int parentDepth)
throws IOException
- Get the virtual file root.
- Parameters:
url
- the root URLparentDepth
- 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 resourcename
- 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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.