org.jboss.seam.deployment
Class AbstractScanner
java.lang.Object
org.jboss.seam.deployment.AbstractScanner
- All Implemented Interfaces:
- Scanner
- Direct Known Subclasses:
- ForwardingAbstractScanner, URLScanner
public abstract class AbstractScanner
- extends java.lang.Object
- implements Scanner
Abstract base class for Scanner providing common functionality
This class provides file-system orientated scanning
- Author:
- Pete Muir
|
Method Summary |
DeploymentStrategy |
getDeploymentStrategy()
Get the deployment strategy this scanner is used by |
long |
getTimestamp()
|
protected boolean |
handle(java.lang.String name)
|
protected void |
handleItem(java.lang.String name)
|
protected static boolean |
hasAnnotations(javassist.bytecode.ClassFile classFile,
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
|
protected static javassist.bytecode.ClassFile |
loadClassFile(java.lang.String name,
java.lang.ClassLoader classLoader)
Get a Javassist ClassFile for a given class name from the classLoader |
void |
scanDirectories(java.io.File[] directories,
java.io.File[] excludedDirectories)
Recursively scan directories, skipping directories in the exclusion list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletContext
protected javax.servlet.ServletContext servletContext
AbstractScanner
public AbstractScanner(DeploymentStrategy deploymentStrategy)
AbstractScanner
@Deprecated
protected AbstractScanner()
- Deprecated.
AbstractScanner
protected AbstractScanner(javax.servlet.ServletContext servletContext)
hasAnnotations
protected static boolean hasAnnotations(javassist.bytecode.ClassFile classFile,
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotationTypes)
loadClassFile
protected static javassist.bytecode.ClassFile loadClassFile(java.lang.String name,
java.lang.ClassLoader classLoader)
throws java.io.IOException
- Get a Javassist
ClassFile for a given class name from the classLoader
- Throws:
java.io.IOException
getDeploymentStrategy
public DeploymentStrategy getDeploymentStrategy()
- Description copied from interface:
Scanner
- Get the deployment strategy this scanner is used by
- Specified by:
getDeploymentStrategy in interface Scanner
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp in interface Scanner
handleItem
protected void handleItem(java.lang.String name)
handle
protected boolean handle(java.lang.String name)
scanDirectories
public void scanDirectories(java.io.File[] directories,
java.io.File[] excludedDirectories)
- Description copied from interface:
Scanner
- Recursively scan directories, skipping directories in the exclusion list.
- Specified by:
scanDirectories in interface Scanner
- Parameters:
directories - An array of the roots of the directory trees to scanexcludedDirectories - Directories to skip over during the recursive scan
Copyright © 2011 Seam Framework. All Rights Reserved.