public abstract class AbstractContext extends Object implements IContext
Constructor and Description |
---|
AbstractContext() |
AbstractContext(IMRuleExecutionSet executionSet) |
AbstractContext(IMRuleExecutionSet executionSet,
String loggerName) |
AbstractContext(String loggerName) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeWrapping(AbstractContext wrapper,
boolean copyVariables)
Replaces wrapper's variables with current instance's ones.
|
abstract String |
getDefaultLoggerName() |
IMRuleExecutionSet |
getExecutionSet() |
MBeanUtils.ImportHolder |
getImports()
Returns local imports for this context's ruleset.
|
Log |
getLog()
Get logger/
|
IContext |
getRootContext()
In case of sub context usage, this allows to access the root context.
|
<T extends IMRulesSecurityManager> |
getSecurityManager(Class<T> managerClass)
Searches in security managers the one corresponding to the provided identifying class.
|
TypedMap |
getVariables()
Returns a Map of:
variables types encountered during compilation.
|
void |
setExecutionSet(IMRuleExecutionSet executionSet)
Sets linked rule set and adapts logger name suffix with rule set's name.
|
void |
setLoggerName(String name)
Allows to override logger name for an execution / a compilation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPhase, getReadBaseType, getWriteBaseType
public AbstractContext()
public AbstractContext(String loggerName)
public AbstractContext(IMRuleExecutionSet executionSet)
public AbstractContext(IMRuleExecutionSet executionSet, String loggerName)
public IMRuleExecutionSet getExecutionSet()
getExecutionSet
in interface IContext
IContext.getExecutionSet()
public final void setExecutionSet(IMRuleExecutionSet executionSet)
setExecutionSet
in interface IContext
IContext.setExecutionSet(IMRuleExecutionSet)
public TypedMap getVariables()
IContext
getVariables
in interface IContext
public void setLoggerName(String name)
IContext
ICompilationContext.DEFAULT_COMPILE_LOGGER_NAME
or ICompilationContext.DEFAULT_OPTIMIZE_LOGGER_NAME
or IExecutionContext.DEFAULT_LOGGER_NAME
.setLoggerName
in interface IContext
public abstract String getDefaultLoggerName()
public IContext getRootContext()
IContext
getRootContext
in interface IContext
public MBeanUtils.ImportHolder getImports()
IContext
getImports
in interface IContext
public <T extends IMRulesSecurityManager> T getSecurityManager(Class<T> managerClass) throws MRulesSecurityException
IContext
getSecurityManager
in interface IContext
MRulesSecurityException
protected void completeWrapping(AbstractContext wrapper, boolean copyVariables)