Class JavaConfiguration

java.lang.Object
org.kie.memorycompiler.JavaConfiguration

public class JavaConfiguration extends Object
There are options to use various flavours of runtime compilers. Apache JCI is used as the interface to all the runtime compilers. You can also use the system property "drools.dialect.java.compiler" to set the desired compiler. The valid values are "ECLIPSE" and "NATIVE" only. drools.dialect.java.compiler = <ECLIPSE|NATIVE> drools.dialect.java.compiler.lnglevel = <1.5|1.6> The default compiler is Eclipse and the default lngLevel is 1.5. The lngLevel will attempt to autodiscover your system using the system property "java.version"
  • Field Details

  • Constructor Details

    • JavaConfiguration

      public JavaConfiguration()
  • Method Details

    • findJavaVersion

      public static String findJavaVersion()
    • findJavaVersion

      public static String findJavaVersion(String level)
    • getJavaLanguageLevel

      public String getJavaLanguageLevel()
    • setJavaLanguageLevel

      public void setJavaLanguageLevel(String languageLevel)
      You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.
      Parameters:
      languageLevel -
    • setCompiler

      public void setCompiler(JavaConfiguration.CompilerType compiler)
      Set the compiler to be used when building the rules semantic code blocks. This overrides the default, and even what was set as a system property.
    • getCompiler

      public JavaConfiguration.CompilerType getCompiler()