Package org.codehaus.commons.compiler
Class CompilerFactoryFactory
- java.lang.Object
-
- org.codehaus.commons.compiler.CompilerFactoryFactory
-
public final class CompilerFactoryFactory extends Object
Utility class that finds implementations ofICompilerFactorys.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICompilerFactory[]getAllCompilerFactories()Finds all implementation oforg.codehaus.commons.compileron the class path, then loads and instantiates theirICompilerFactorys.static ICompilerFactorygetCompilerFactory(String compilerFactoryClassName)Loads anICompilerFactoryby class name.static ICompilerFactorygetDefaultCompilerFactory()Finds the first implementation oforg.codehaus.commons.compileron the class path, then loads and instantiates itsICompilerFactory.static StringgetSpecificationVersion()
-
-
-
Method Detail
-
getDefaultCompilerFactory
public static ICompilerFactory getDefaultCompilerFactory() throws Exception
Finds the first implementation oforg.codehaus.commons.compileron the class path, then loads and instantiates itsICompilerFactory.- Returns:
- The
ICompilerFactoryof the first implementation on the class path - Throws:
Exception- Many things can go wrong while finding and initializing the default compiler factory
-
getAllCompilerFactories
public static ICompilerFactory[] getAllCompilerFactories() throws Exception
Finds all implementation oforg.codehaus.commons.compileron the class path, then loads and instantiates theirICompilerFactorys.- Returns:
- The
ICompilerFactorys of all implementations on the class path - Throws:
Exception- Many things can go wrong while finding and initializing compiler factories
-
getCompilerFactory
public static ICompilerFactory getCompilerFactory(String compilerFactoryClassName) throws Exception
Loads anICompilerFactoryby 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
public static String getSpecificationVersion()
- Returns:
- The version of the commons-compiler specification, or
null
-
-