janino.net

org.codehaus.commons.compiler
Class CompilerFactoryFactory

java.lang.Object
  extended by org.codehaus.commons.compiler.CompilerFactoryFactory

public final class CompilerFactoryFactory
extends Object

Utility class that finds implementations of ICompilerFactorys.


Method Summary
static ICompilerFactory[] getAllCompilerFactories()
          Finds all implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates their ICompilerFactorys.
static ICompilerFactory getCompilerFactory(String compilerFactoryClassName)
          Loads an ICompilerFactory by class name.
static ICompilerFactory getDefaultCompilerFactory()
          Finds the first implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates its ICompilerFactory.
static String getSpecificationVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultCompilerFactory

public static ICompilerFactory getDefaultCompilerFactory()
                                                  throws Exception
Finds the first implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates its ICompilerFactory.

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

public static ICompilerFactory[] getAllCompilerFactories()
                                                  throws Exception
Finds all implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates their ICompilerFactorys.

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 an ICompilerFactory by class name.

Parameters:
compilerFactoryClassName - Name of a class that implements ICompilerFactory
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

janino.net