public class JavaConfiguration extends Object implements DialectConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaConfiguration.CompilerType |
static class |
JavaConfiguration.DummyDialect |
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_COMPILER_PROPERTY |
static String |
JAVA_LANG_LEVEL_PROPERTY |
protected static String[] |
LANGUAGE_LEVELS |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
JavaConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findJavaVersion(org.kie.internal.utils.ChainedProperties chainedProperties) |
JavaConfiguration.CompilerType |
getCompiler() |
String |
getJavaLanguageLevel() |
KnowledgeBuilderConfigurationImpl |
getPackageBuilderConfiguration() |
void |
init(KnowledgeBuilderConfigurationImpl conf) |
Dialect |
newDialect(ClassLoader rootClassLoader,
KnowledgeBuilderConfigurationImpl pkgConf,
PackageRegistry pkgRegistry,
org.drools.core.definitions.InternalKnowledgePackage pkg) |
void |
setCompiler(JavaConfiguration.CompilerType compiler)
Set the compiler to be used when building the rules semantic code blocks.
|
void |
setJavaLanguageLevel(String languageLevel)
You cannot set language level below 1.5, as we need static imports, 1.5 is now the default.
|
protected static final transient org.slf4j.Logger logger
public static final String JAVA_COMPILER_PROPERTY
public static final String JAVA_LANG_LEVEL_PROPERTY
protected static final String[] LANGUAGE_LEVELS
public void init(KnowledgeBuilderConfigurationImpl conf)
init in interface DialectConfigurationpublic static String findJavaVersion(org.kie.internal.utils.ChainedProperties chainedProperties)
public KnowledgeBuilderConfigurationImpl getPackageBuilderConfiguration()
getPackageBuilderConfiguration in interface DialectConfigurationpublic Dialect newDialect(ClassLoader rootClassLoader, KnowledgeBuilderConfigurationImpl pkgConf, PackageRegistry pkgRegistry, org.drools.core.definitions.InternalKnowledgePackage pkg)
newDialect in interface DialectConfigurationpublic String getJavaLanguageLevel()
public void setJavaLanguageLevel(String languageLevel)
languageLevel - public void setCompiler(JavaConfiguration.CompilerType compiler)
public JavaConfiguration.CompilerType getCompiler()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.