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 Object
- implements Scanner
Abstract base class for Scanner
providing common functionality
This class provides file-system orientated scanning
- Author:
- Pete Muir
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractScanner
public AbstractScanner(DeploymentStrategy deploymentStrategy)
AbstractScanner
protected AbstractScanner()
hasAnnotations
protected static boolean hasAnnotations(javassist.bytecode.ClassFile classFile,
Set<Class<? extends Annotation>> annotationTypes)
loadClassFile
protected static javassist.bytecode.ClassFile loadClassFile(String name,
ClassLoader classLoader)
throws IOException
- Get a Javassist
ClassFile
for a given class name from the classLoader
- Throws:
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(String name)
handle
protected boolean handle(String name)
scanDirectories
public void scanDirectories(File[] directories,
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