Package org.kie.memorycompiler
Class JavaConfiguration
java.lang.Object
org.kie.memorycompiler.JavaConfiguration
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"
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringfindJavaVersion(String level) 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 Details
-
LANGUAGE_LEVELS
-
JAVA_COMPILER_PROPERTY
- See Also:
-
JAVA_LANG_LEVEL_PROPERTY
- See Also:
-
-
Constructor Details
-
JavaConfiguration
public JavaConfiguration()
-
-
Method Details
-
findJavaVersion
-
findJavaVersion
-
getJavaLanguageLevel
-
setJavaLanguageLevel
You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.- Parameters:
languageLevel-
-
setCompiler
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
-