org.glassfish.apf.impl
Class JarScanner

java.lang.Object
  extended by org.glassfish.apf.impl.JavaEEScanner
      extended by org.glassfish.apf.impl.JarScanner
All Implemented Interfaces:
Scanner<Object>

public class JarScanner
extends JavaEEScanner
implements Scanner<Object>

Implements the scanner interface on a jar file.

Author:
Jerome Dochez

Constructor Summary
JarScanner()
           
 
Method Summary
 ClassLoader getClassLoader()
          Returns a ClassLoader capable of loading classes from the underlying medium
 Set<Class> getElements()
          Return a complete set of classes available from this location.
 void process(File jarFile, Object bundleDesc, ClassLoader loader)
           
 
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
 

Constructor Detail

JarScanner

public JarScanner()
Method Detail

process

public void process(File jarFile,
                    Object bundleDesc,
                    ClassLoader loader)
             throws IOException
Specified by:
process in interface Scanner<Object>
Throws:
IOException

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: Scanner
Returns a ClassLoader capable of loading classes from the underlying medium

Specified by:
getClassLoader in interface Scanner<Object>
Returns:
a class loader capable of loading the classes

getElements

public Set<Class> getElements()
Description copied from interface: Scanner
Return a complete set of classes available from this location.

Specified by:
getElements in interface Scanner<Object>
Returns:
the complete set of classes


Copyright © 2012 GlassFish Community. All Rights Reserved.