org.apache.commons.jci.compilers
Class JavaCompilerFactory

java.lang.Object
  extended by org.apache.commons.jci.compilers.JavaCompilerFactory

public final class JavaCompilerFactory
extends Object

Creates JavaCompilers TODO use META-INF discovery mechanism

Author:
tcurdt

Constructor Summary
JavaCompilerFactory()
           
 
Method Summary
 JavaCompiler createCompiler(String pHint)
          Tries to guess the class name by convention.
static JavaCompilerFactory getInstance()
          Deprecated. will be remove after the next release, please create an instance yourself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaCompilerFactory

public JavaCompilerFactory()
Method Detail

getInstance

@Deprecated
public static JavaCompilerFactory getInstance()
Deprecated. will be remove after the next release, please create an instance yourself


createCompiler

public JavaCompiler createCompiler(String pHint)
Tries to guess the class name by convention. So for compilers following the naming convention org.apache.commons.jci.compilers.SomeJavaCompiler you can use the short-hands "some"/"Some"/"SOME". Otherwise you have to provide the full class name. The compiler is getting instanciated via (cached) reflection.

Parameters:
pHint -
Returns:
JavaCompiler or null


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.