org.jboss.seam.deployment
public abstract class AbstractScanner extends Object implements Scanner
Scanner providing common functionality
This class provides file-system orientated scanning| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
servletContext |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScanner()
Deprecated.
|
|
AbstractScanner(DeploymentStrategy deploymentStrategy) |
protected |
AbstractScanner(javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
DeploymentStrategy |
getDeploymentStrategy()
Get the deployment strategy this scanner is used by
|
long |
getTimestamp() |
protected boolean |
handle(String name) |
protected void |
handleItem(String name) |
protected static boolean |
hasAnnotations(javassist.bytecode.ClassFile classFile,
Set<Class<? extends Annotation>> annotationTypes) |
protected static javassist.bytecode.ClassFile |
loadClassFile(String name,
ClassLoader classLoader)
Get a Javassist
ClassFile for a given class name from the classLoader |
void |
scanDirectories(File[] directories,
File[] excludedDirectories)
Recursively scan directories, skipping directories in the exclusion list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscanDirectories, scanResourcespublic AbstractScanner(DeploymentStrategy deploymentStrategy)
@Deprecated protected AbstractScanner()
protected AbstractScanner(javax.servlet.ServletContext servletContext)
protected static boolean hasAnnotations(javassist.bytecode.ClassFile classFile,
Set<Class<? extends Annotation>> annotationTypes)
protected static javassist.bytecode.ClassFile loadClassFile(String name, ClassLoader classLoader) throws IOException
ClassFile for a given class name from the classLoaderIOExceptionpublic DeploymentStrategy getDeploymentStrategy()
ScannergetDeploymentStrategy in interface Scannerpublic long getTimestamp()
getTimestamp in interface Scannerprotected void handleItem(String name)
protected boolean handle(String name)
public void scanDirectories(File[] directories, File[] excludedDirectories)
ScannerscanDirectories in interface Scannerdirectories - An array of the roots of the directory trees to scanexcludedDirectories - Directories to skip over during the recursive scanCopyright © 2015 Seam Framework. All Rights Reserved.