Package org.kie.memorycompiler
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.compiler" to set the desired compiler. The valid values are "ECLIPSE" and "NATIVE" only. drools.dialect.java.compiler =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"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaConfiguration.CompilerType
-
Field Summary
Fields Modifier and Type Field Description static StringJAVA_COMPILER_PROPERTYstatic StringJAVA_LANG_LEVEL_PROPERTYprotected static String[]LANGUAGE_LEVELS
-
Constructor Summary
Constructors Constructor Description JavaConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringfindJavaVersion()static StringfindJavaVersion(String level)JavaConfiguration.CompilerTypegetCompiler()StringgetJavaLanguageLevel()voidsetCompiler(JavaConfiguration.CompilerType compiler)Set the compiler to be used when building the rules semantic code blocks.voidsetJavaLanguageLevel(String languageLevel)You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.
-
-
-
Field Detail
-
LANGUAGE_LEVELS
protected static final String[] LANGUAGE_LEVELS
-
JAVA_COMPILER_PROPERTY
public static final String JAVA_COMPILER_PROPERTY
- See Also:
- Constant Field Values
-
JAVA_LANG_LEVEL_PROPERTY
public static final String JAVA_LANG_LEVEL_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
findJavaVersion
public static String findJavaVersion()
-
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()
-
-