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, waitgetPhase, getReadBaseType, getWriteBaseTypepublic AbstractContext()
public AbstractContext(String loggerName)
public AbstractContext(IMRuleExecutionSet executionSet)
public AbstractContext(IMRuleExecutionSet executionSet, String loggerName)
public IMRuleExecutionSet getExecutionSet()
getExecutionSet in interface IContextIContext.getExecutionSet()public final void setExecutionSet(IMRuleExecutionSet executionSet)
setExecutionSet in interface IContextIContext.setExecutionSet(IMRuleExecutionSet)public TypedMap getVariables()
IContextgetVariables in interface IContextpublic void setLoggerName(String name)
IContextICompilationContext.DEFAULT_COMPILE_LOGGER_NAME
or ICompilationContext.DEFAULT_OPTIMIZE_LOGGER_NAME
or IExecutionContext.DEFAULT_LOGGER_NAME.setLoggerName in interface IContextpublic abstract String getDefaultLoggerName()
public IContext getRootContext()
IContextgetRootContext in interface IContextpublic MBeanUtils.ImportHolder getImports()
IContextgetImports in interface IContextpublic <T extends IMRulesSecurityManager> T getSecurityManager(Class<T> managerClass) throws MRulesSecurityException
IContextgetSecurityManager in interface IContextMRulesSecurityExceptionprotected void completeWrapping(AbstractContext wrapper, boolean copyVariables)