public abstract class AbstractRuleExecutionSetFactory extends Object implements IRuleExecutionSetFactory
Constructor and Description |
---|
AbstractRuleExecutionSetFactory() |
AbstractRuleExecutionSetFactory(CompilationLevel compilationLevel) |
AbstractRuleExecutionSetFactory(CompilationLevel compilationLevel,
boolean forceCompilationLevel) |
AbstractRuleExecutionSetFactory(ICompilationContext compilationContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
compile(IMRuleExecutionSet set) |
ICacheActivationResolver |
getCacheActivationResolver()
Allows to override global cache activation configuration.
|
ICompilationContext |
getCompilationContext() |
CompilationLevel |
getCompilationLevel() |
boolean |
isForceCompilationLevel()
Tells if compilation level specified in this ruleset factory has priority on compilation level defined in ruleset's context factory, if present.
|
boolean |
isOptimizationEnabled()
Allows to completely disable optimization process.
|
void |
setCacheActivationResolver(ICacheActivationResolver cacheActivationResolver)
Allows to override global cache activation configuration.
|
void |
setCompilationContext(ICompilationContext compilationContext) |
void |
setCompilationLevel(CompilationLevel compilationLevel)
Sets compilation context to use with context factory.
|
void |
setForceCompilationLevel(boolean forceCompilationLevel) |
void |
setOptimizationEnabled(boolean optimizationEnabled)
Is optimization process enabled?
|
public AbstractRuleExecutionSetFactory()
public AbstractRuleExecutionSetFactory(CompilationLevel compilationLevel)
public AbstractRuleExecutionSetFactory(CompilationLevel compilationLevel, boolean forceCompilationLevel)
public AbstractRuleExecutionSetFactory(ICompilationContext compilationContext)
public CompilationLevel getCompilationLevel()
getCompilationLevel
in interface IRuleExecutionSetFactory
CompilationLevel.STANDARD
.public void setCompilationLevel(CompilationLevel compilationLevel)
IRuleExecutionSetFactory
setCompilationLevel
in interface IRuleExecutionSetFactory
public boolean isForceCompilationLevel()
IRuleExecutionSetFactory
isForceCompilationLevel
in interface IRuleExecutionSetFactory
public void setForceCompilationLevel(boolean forceCompilationLevel)
setForceCompilationLevel
in interface IRuleExecutionSetFactory
IRuleExecutionSetFactory.isForceCompilationLevel()
public ICompilationContext getCompilationContext()
getCompilationContext
in interface IRuleExecutionSetFactory
public void setCompilationContext(ICompilationContext compilationContext)
setCompilationContext
in interface IRuleExecutionSetFactory
public boolean isOptimizationEnabled()
IRuleExecutionSetFactory
isOptimizationEnabled
in interface IRuleExecutionSetFactory
public void setOptimizationEnabled(boolean optimizationEnabled)
IRuleExecutionSetFactory
setOptimizationEnabled
in interface IRuleExecutionSetFactory
public ICacheActivationResolver getCacheActivationResolver()
IRuleExecutionSetFactory
MAddonsFinder.getCacheActivationResolver()
getCacheActivationResolver
in interface IRuleExecutionSetFactory
public void setCacheActivationResolver(ICacheActivationResolver cacheActivationResolver)
IRuleExecutionSetFactory
setCacheActivationResolver
in interface IRuleExecutionSetFactory
protected void compile(IMRuleExecutionSet set) throws MConfigurationException, MRuleValidationException