Package org.apache.commons.jci.compilers
Class JavaCompilerFactory
- java.lang.Object
-
- org.apache.commons.jci.compilers.JavaCompilerFactory
-
public final class JavaCompilerFactory extends java.lang.Object
Creates JavaCompilers TODO use META-INF discovery mechanism- Author:
- tcurdt
-
-
Constructor Summary
Constructors Constructor Description JavaCompilerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JavaCompiler
createCompiler(java.lang.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
-
-
-
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(java.lang.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
-
-