org.glassfish.apf.impl
Class DirectoryScanner

java.lang.Object
  extended by org.glassfish.apf.impl.JavaEEScanner
      extended by 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
DirectoryScanner()
           
 
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.
protected  Set<String> getEntries()
           
 void process(File directory, Object bundleDesc, ClassLoader classLoader)
           
 
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

DirectoryScanner

public DirectoryScanner()
Method Detail

process

public void process(File directory,
                    Object bundleDesc,
                    ClassLoader classLoader)
             throws IOException
Specified by:
process in interface Scanner
Throws:
IOException

getEntries

protected Set<String> getEntries()

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
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
Returns:
the complete set of classes


Copyright © 2012 GlassFish Community. All Rights Reserved.