Package org.glassfish.apf.impl
Class DirectoryScanner
- java.lang.Object
-
- org.glassfish.apf.impl.JavaEEScanner
-
- org.glassfish.apf.impl.DirectoryScanner
-
- All Implemented Interfaces:
Scanner
public class DirectoryScanner extends JavaEEScanner implements Scanner
Implementation of the Scanner interface for a directory- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description DirectoryScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns a ClassLoader capable of loading classes from the underlying mediumSet<Class>getElements()Return a complete set of classes available from this location.protected Set<String>getEntries()voidprocess(File directory, Object bundleDesc, ClassLoader classLoader)Scan the archive file and gather a list of classes that should be processed for anntoations-
Methods inherited from class org.glassfish.apf.impl.JavaEEScanner
getComponentInfo, getTypes, initTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.apf.Scanner
getComponentInfo, getTypes
-
-
-
-
Method Detail
-
process
public void process(File directory, Object bundleDesc, ClassLoader classLoader) throws IOException
Description copied from interface:ScannerScan the archive file and gather a list of classes that should be processed for anntoations- Specified by:
processin interfaceScanner- Parameters:
directory- the archive file for scanningbundleDesc- the bundle descriptor associated with this archive- Throws:
IOException
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:ScannerReturns a ClassLoader capable of loading classes from the underlying medium- Specified by:
getClassLoaderin interfaceScanner- Returns:
- a class loader capable of loading the classes
-
getElements
public Set<Class> getElements()
Description copied from interface:ScannerReturn a complete set of classes available from this location.- Specified by:
getElementsin interfaceScanner- Returns:
- the complete set of classes
-
-