Package org.jvnet.hk2.generator.internal
Class InFlightGeneratorImpl
java.lang.Object
org.jvnet.hk2.generator.internal.InFlightGeneratorImpl
- All Implemented Interfaces:
InFlightGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateFromMultipleDirectories
(List<File> directories, List<File> searchPath, boolean verbose, OutputStream inhabitantFile) Scans multiple directories for HK2 services to be written to the given output stream
-
Constructor Details
-
InFlightGeneratorImpl
public InFlightGeneratorImpl()
-
-
Method Details
-
generateFromMultipleDirectories
public void generateFromMultipleDirectories(List<File> directories, List<File> searchPath, boolean verbose, OutputStream inhabitantFile) throws IOException Description copied from interface:InFlightGenerator
Scans multiple directories for HK2 services to be written to the given output stream- Specified by:
generateFromMultipleDirectories
in interfaceInFlightGenerator
- Parameters:
directories
- A set of directories that should contain class files to be scanned for HK2 services to be added to the output. All the files in this list must be directoriessearchPath
- A set of directories or jar files that may contain other required classes but which classes would not be added to the output streamverbose
- if true print information about progressinhabitantFile
- The stream to which to write any HK2 service descriptors found in under directories- Throws:
IOException
- if there is an error writing the inhabitantFile or reading the class files
-