Package org.drools.compiler.builder.impl
Class KnowledgeBuilderRulesConfigurationImpl
java.lang.Object
org.drools.core.BaseConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption,MultiValueKieBuilderOption>
org.drools.compiler.builder.impl.KnowledgeBuilderRulesConfigurationImpl
- All Implemented Interfaces:
Externalizable,Serializable,OptionsConfiguration<KnowledgeBuilderOption,,SingleValueKieBuilderOption, MultiValueKieBuilderOption> PropertiesConfiguration,KnowledgeBuilderOptionsConfiguration,KnowledgeBuilderConfiguration,InternalPropertiesConfiguration
public class KnowledgeBuilderRulesConfigurationImpl
extends BaseConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption,MultiValueKieBuilderOption>
implements KnowledgeBuilderConfiguration
This class configures the package compiler.
Dialects and their DialectConfigurations are handled by the DialectRegistry
Normally you will not need to look at this class, unless you want to override the defaults.
This class is not thread safe and it also contains state. Once it is created and used
in one or more PackageBuilders it should be considered immutable. Do not modify its
properties while it is being used by a PackageBuilder.
drools.dialect.default =
drools.accumulate.function. =
drools.evaluator. =
drools.dump.dir =
drools.classLoaderCacheEnabled = true|false
drools.parallelRulesBuildThreshold =
default dialect is java.
Available preconfigured Accumulate functions are:
drools.accumulate.function.average = org.kie.base.accumulators.AverageAccumulateFunction
drools.accumulate.function.max = org.kie.base.accumulators.MaxAccumulateFunction
drools.accumulate.function.min = org.kie.base.accumulators.MinAccumulateFunction
drools.accumulate.function.count = org.kie.base.accumulators.CountAccumulateFunction
drools.accumulate.function.sum = org.kie.base.accumulators.SumAccumulateFunction
drools.parser.processStringEscapes = true|false
drools.problem.severity. = ERROR|WARNING|INFO
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigurationKey<KnowledgeBuilderRulesConfigurationImpl>Fields inherited from class org.drools.core.BaseConfiguration
compConfig -
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeBuilderRulesConfigurationImpl(CompositeConfiguration<KnowledgeBuilderOption, SingleValueKieBuilderOption, MultiValueKieBuilderOption> compConfig) Programmatic properties file, added with lease precedence -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccumulateFunction(String identifier, Class<? extends AccumulateFunction> clazz) voidaddAccumulateFunction(String identifier, String className) voidaddEvaluatorDefinition(String className) Adds an evaluator definition class to the registry using the evaluator class name.voidAdds an evaluator definition class to the registry.getAccumulateFunction(String identifier) Returns the evaluator registry for this package builder configurationprotected ClassLoadergetInternalProperty(String name) <T extends SingleValueKieBuilderOption>
T<T extends MultiValueKieBuilderOption>
T<T extends MultiValueKieBuilderOption>
Set<String>getOptionSubKeys(OptionKey<T> option) intbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAlphaNetworkCompilerOption(AlphaNetworkCompilerOption alphaNetworkCompilerOption) voidvoidsetExternaliseCanonicalModelLambda(boolean externaliseCanonicalModelLambda) voidsetGroupDRLsInKieBasesByFolder(boolean groupDRLsInKieBasesByFolder) booleansetInternalProperty(String name, String value) voidsetLanguageLevel(LanguageLevelOption languageLevel) <T extends KnowledgeBuilderOption>
voidsetOption(T option) voidsetParallelLambdaExternalization(boolean parallelLambdaExternalization) voidsetParallelRulesBuildThreshold(int parallelRulesBuildThreshold) voidsetProcessStringEscapes(boolean processStringEscapes) voidsetPropertySpecificOption(PropertySpecificOption propertySpecificOption) voidsetPrototypesOption(PrototypesOption prototypesOption) voidsetReproducibleExecutableModelGeneration(boolean reproducibleExecutableModelGeneration) voidsetTrimCellsInDTable(boolean trimCellsInDTable) Methods inherited from class org.drools.core.BaseConfiguration
as, checkCanChange, getChainedProperties, getClassLoader, getProperties, getProperty, getPropertyValue, isImmutable, makeImmutable, readExternal, setClassLoader, setProperty, writeExternalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.conf.OptionsConfiguration
as, getClassLoader, getOptionKeys, makeImmutableMethods inherited from interface org.kie.api.PropertiesConfiguration
getProperty, setProperty
-
Field Details
-
KEY
-
-
Constructor Details
-
KnowledgeBuilderRulesConfigurationImpl
public KnowledgeBuilderRulesConfigurationImpl(CompositeConfiguration<KnowledgeBuilderOption, SingleValueKieBuilderOption, MultiValueKieBuilderOption> compConfig) Programmatic properties file, added with lease precedence
-
-
Method Details
-
getFunctionFactoryClassLoader
-
setInternalProperty
- Specified by:
setInternalPropertyin interfaceInternalPropertiesConfiguration
-
getInternalProperty
- Specified by:
getInternalPropertyin interfaceInternalPropertiesConfiguration
-
addAccumulateFunction
-
addAccumulateFunction
-
getAccumulateFunction
-
getAccumulateFunctionNames
-
getEvaluatorRegistry
Returns the evaluator registry for this package builder configuration- Returns:
-
addEvaluatorDefinition
Adds an evaluator definition class to the registry using the evaluator class name. The class will be loaded and the corresponting evaluator ID will be added to the registry. In case there exists an implementation for that ID already, the new implementation will replace the previous one.- Parameters:
className- the name of the class for the implementation definition. The class must implement the EvaluatorDefinition interface.
-
addEvaluatorDefinition
Adds an evaluator definition class to the registry. In case there exists an implementation for that evaluator ID already, the new implementation will replace the previous one.- Parameters:
def- the evaluator definition to be added.
-
isProcessStringEscapes
public boolean isProcessStringEscapes() -
setProcessStringEscapes
public void setProcessStringEscapes(boolean processStringEscapes) -
isTrimCellsInDTable
public boolean isTrimCellsInDTable() -
setTrimCellsInDTable
public void setTrimCellsInDTable(boolean trimCellsInDTable) -
isGroupDRLsInKieBasesByFolder
public boolean isGroupDRLsInKieBasesByFolder() -
setGroupDRLsInKieBasesByFolder
public void setGroupDRLsInKieBasesByFolder(boolean groupDRLsInKieBasesByFolder) -
getParallelRulesBuildThreshold
public int getParallelRulesBuildThreshold() -
setParallelRulesBuildThreshold
public void setParallelRulesBuildThreshold(int parallelRulesBuildThreshold) -
getLanguageLevel
-
setLanguageLevel
-
getPropertySpecificOption
-
setPropertySpecificOption
-
getPrototypesOption
-
setPrototypesOption
-
isExternaliseCanonicalModelLambda
public boolean isExternaliseCanonicalModelLambda() -
setExternaliseCanonicalModelLambda
public void setExternaliseCanonicalModelLambda(boolean externaliseCanonicalModelLambda) -
isParallelLambdaExternalization
public boolean isParallelLambdaExternalization() -
setParallelLambdaExternalization
public void setParallelLambdaExternalization(boolean parallelLambdaExternalization) -
isReproducibleExecutableModelGeneration
public boolean isReproducibleExecutableModelGeneration() -
setReproducibleExecutableModelGeneration
public void setReproducibleExecutableModelGeneration(boolean reproducibleExecutableModelGeneration) -
getAlphaNetworkCompilerOption
-
setAlphaNetworkCompilerOption
-
getOption
- Specified by:
getOptionin interfaceOptionsConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption, MultiValueKieBuilderOption>
-
getOption
- Specified by:
getOptionin interfaceOptionsConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption, MultiValueKieBuilderOption>
-
getOptionSubKeys
- Specified by:
getOptionSubKeysin interfaceOptionsConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption, MultiValueKieBuilderOption>
-
setOption
- Specified by:
setOptionin interfaceOptionsConfiguration<KnowledgeBuilderOption,SingleValueKieBuilderOption, MultiValueKieBuilderOption>
-
getCompilationCache
-
setCompilationCache
-
isPreCompiled
public boolean isPreCompiled()
-