Class JavaCompilerFactory


  • public final class JavaCompilerFactory
    extends java.lang.Object
    Creates JavaCompilers TODO use META-INF discovery mechanism
    Author:
    tcurdt
    • 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​(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