Package org.apache.commons.jci.compilers
Class JavaCompilerFactory
- java.lang.Object
-
- org.apache.commons.jci.compilers.JavaCompilerFactory
-
public final class JavaCompilerFactory extends java.lang.ObjectCreates JavaCompilers TODO use META-INF discovery mechanism
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Class<?>>classCacheprivate static JavaCompilerFactoryINSTANCEDeprecated.will be remove after the next release, please create an instance yourself
-
Constructor Summary
Constructors Constructor Description JavaCompilerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JavaCompilercreateCompiler(java.lang.String pHint)Tries to guess the class name by convention.static JavaCompilerFactorygetInstance()Deprecated.will be remove after the next release, please create an instance yourself
-
-
-
Field Detail
-
INSTANCE
@Deprecated private static final JavaCompilerFactory INSTANCE
Deprecated.will be remove after the next release, please create an instance yourself
-
classCache
private final java.util.Map<java.lang.String,java.lang.Class<?>> classCache
-
-
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
-
-