Package org.glassfish.apf.impl
Class JarScanner
- java.lang.Object
-
- org.glassfish.apf.impl.JavaEEScanner
-
- org.glassfish.apf.impl.JarScanner
-
public class JarScanner extends JavaEEScanner implements Scanner<Object>
Implements the scanner interface on a jar file.- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description JarScanner()
-
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.voidprocess(File jarFile, Object bundleDesc, ClassLoader loader)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 jarFile, Object bundleDesc, ClassLoader loader) 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<Object>- Parameters:
jarFile- 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<Object>- Returns:
- a class loader capable of loading the classes
-
-