public interface IContext
Modifier and Type | Method and Description |
---|---|
IMRuleExecutionSet |
getExecutionSet() |
MBeanUtils.ImportHolder |
getImports()
Returns local imports for this context's ruleset.
|
Log |
getLog()
Get logger/
|
Phase |
getPhase()
Returns:
Phase.COMPILE or Phase.OPTIMIZE for ICompilationContext
Phase.EXECUTE for IExecutionContext
|
Class<?> |
getReadBaseType()
Returns base object type for property read access.
|
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.
|
Class<?> |
getWriteBaseType()
Returns base object type for property write access.
|
void |
setExecutionSet(IMRuleExecutionSet executionSet) |
void |
setLoggerName(String name)
Allows to override logger name for an execution / a compilation.
|
IMRuleExecutionSet getExecutionSet()
getExecutionSet()
void setExecutionSet(IMRuleExecutionSet executionSet)
Phase getPhase()
Class<?> getReadBaseType()
Class<?> getWriteBaseType()
TypedMap getVariables()
Log getLog()
void setLoggerName(String name)
ICompilationContext.DEFAULT_COMPILE_LOGGER_NAME
or ICompilationContext.DEFAULT_OPTIMIZE_LOGGER_NAME
or IExecutionContext.DEFAULT_LOGGER_NAME
.IContext getRootContext()
MBeanUtils.ImportHolder getImports()
<T extends IMRulesSecurityManager> T getSecurityManager(Class<T> managerClass) throws MRulesSecurityException
MRulesSecurityException