org.jboss.seam.deployment
public abstract class AbstractScanner extends Object implements Scanner
Scanner
providing common functionality
This class provides file-system orientated scanningModifier 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, wait
scanDirectories, scanResources
public 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 classLoaderIOException
public DeploymentStrategy getDeploymentStrategy()
Scanner
getDeploymentStrategy
in interface Scanner
public long getTimestamp()
getTimestamp
in interface Scanner
protected void handleItem(String name)
protected boolean handle(String name)
public void scanDirectories(File[] directories, File[] excludedDirectories)
Scanner
scanDirectories
in interface Scanner
directories
- 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.