Package org.codehaus.commons.compiler
Class CompilerFactoryFactory
java.lang.Object
org.codehaus.commons.compiler.CompilerFactoryFactory
Utility class that finds implementations of
ICompilerFactory
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic ICompilerFactory[]
Finds all implementation oforg.codehaus.commons.compiler
on the class path, then loads and instantiates theirICompilerFactory
s.static ICompilerFactory
getCompilerFactory
(String compilerFactoryClassName) Loads anICompilerFactory
by class name.static ICompilerFactory
Finds the first implementation oforg.codehaus.commons.compiler
on the class path, then loads and instantiates itsICompilerFactory
.static String
-
Method Details
-
getDefaultCompilerFactory
Finds the first implementation oforg.codehaus.commons.compiler
on the class path, then loads and instantiates itsICompilerFactory
.- Returns:
- The
ICompilerFactory
of the first implementation on the class path - Throws:
Exception
- Many things can go wrong while finding and initializing the default compiler factory
-
getAllCompilerFactories
Finds all implementation oforg.codehaus.commons.compiler
on the class path, then loads and instantiates theirICompilerFactory
s.- Returns:
- The
ICompilerFactory
s of all implementations on the class path - Throws:
Exception
- Many things can go wrong while finding and initializing compiler factories
-
getCompilerFactory
Loads anICompilerFactory
by class name.- Parameters:
compilerFactoryClassName
- Name of a class that implementsICompilerFactory
- Throws:
Exception
- Many things can go wrong while loading and initializing the default compiler factory
-
getSpecificationVersion
- Returns:
- The version of the commons-compiler specification, or
null
-