org.glassfish.apf
Interface Scanner<T>

All Known Implementing Classes:
DirectoryScanner, JarScanner

@Contract
public interface Scanner<T>

This interface is responsible for scanning the binary location provided and provide each binary file through a pull interfaces

Author:
Jerome Dochez

Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns a ClassLoader capable of loading classes from the underlying medium
 ComponentInfo getComponentInfo(java.lang.Class componentImpl)
          Sometimes, annotations processing requires more than a single class, especially when such classes end up being a Java Component (Java Beans, Java EE).
 java.util.Set<java.lang.Class> getElements()
          Return a complete set of classes available from this location.
 org.glassfish.hk2.classmodel.reflect.Types getTypes()
          Return the types information for this module
 void process(java.io.File archiveFile, T bundleDesc, java.lang.ClassLoader classLoader)
           
 

Method Detail

process

void process(java.io.File archiveFile,
             T bundleDesc,
             java.lang.ClassLoader classLoader)
             throws java.io.IOException
Throws:
java.io.IOException

getClassLoader

java.lang.ClassLoader getClassLoader()
Returns a ClassLoader capable of loading classes from the underlying medium

Returns:
a class loader capable of loading the classes

getElements

java.util.Set<java.lang.Class> getElements()
Return a complete set of classes available from this location.

Returns:
the complete set of classes

getComponentInfo

ComponentInfo getComponentInfo(java.lang.Class componentImpl)
Sometimes, annotations processing requires more than a single class, especially when such classes end up being a Java Component (Java Beans, Java EE). The implementation returned from the getComponent will be responsible for defining the complete view of this component starting from it's implementation class.

Parameters:
componentImpl - class of the component.

getTypes

org.glassfish.hk2.classmodel.reflect.Types getTypes()
Return the types information for this module

Returns:
types the archive resulting types


Copyright © 2012 GlassFish Community. All Rights Reserved.