IExecutionContext.getSubContextForNewBases(Object)
and IExecutionContext.getSubContextForNewBases(Object, Object)
@Deprecated public class ExecutionContextWrapper extends ContextWrapper<IExecutionContext> implements IExecutionContext
c
DEFAULT_LOGGER_NAME
Constructor and Description |
---|
ExecutionContextWrapper(IExecutionContext c)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg)
Deprecated.
Writes a debug message.
|
void |
debugEntering()
Deprecated.
Forces to enter a log sub-phase without logging any message.
|
void |
debugEntering(String msg)
Deprecated.
Increments Debug Level : When entering into a sub-phase.
|
void |
debugExiting()
Deprecated.
Forces to exit a log sub-phase without logging any message.
|
void |
debugExiting(String msg)
Deprecated.
Decreases Debug Level : When exiting from a sub-phase.
|
void |
debugParent(String msg)
Deprecated.
Writes a debug message indented once less (if possible).
|
void |
debugSub(String msg)
Deprecated.
Writes a debug message indented once more.
|
IExecutionResult |
execute()
Deprecated.
Convenience method to execute the MRuleExecutionSet of this context with this context.
|
Object |
getCachedData(IAddon a)
Deprecated.
Retrieves data cached by
IExecutionContext.setCachedData(IAddon, Object) . |
ExtPropertySource |
getCachedPropertySource(Object src)
Deprecated.
Internal use only: Drastically disminuish memory footprint by caching Property Source Object.
|
ExtPropertySource |
getCachedPropertySource(Object src,
Class<?> defaultSrcType)
Deprecated.
Internal use only: Drastically disminuish memory footprint by caching Property Source Object.
|
Appendable |
getErr()
Deprecated.
|
String |
getLogSpaces()
Deprecated.
Get spaces corresponding to stack level.
|
Appendable |
getOut()
Deprecated.
|
String |
getParentLogSpaces()
Deprecated.
Get spaces corresponding to stack level indented once less (if possible).
|
Object |
getReadBase()
Deprecated.
Returns base object for property read access.
|
IExecutionContext |
getRootContext()
Deprecated.
In case of sub context usage, this allows to access the root context.
|
MExecutionContext<Object> |
getSubContextForNewBases(Object newBases)
Deprecated.
Gets a new Execution Context instance, modifying the following behaviours :
Read and write bases are the provided newBases
Cache is disabled
|
MInOutExecutionContext<Object,Object> |
getSubContextForNewBases(Object newReadBase,
Object newWriteBase)
Deprecated.
Gets a new Execution Context instance, modifying the following behaviours :
Read and write bases are the provided newReadBase and newWriteBase
Cache is disabled
|
MInOutExecutionContext<Object,Object> |
getSubContextForNewVariables()
Deprecated.
Gets a new Execution Context instance, modifying the following behaviours :
Variables repository is different
|
String |
getSubLogSpaces()
Deprecated.
Get spaces corresponding to stack level indented once more.
|
Object |
getWriteBase()
Deprecated.
Returns base object for property write access.
|
boolean |
hasCachedData(IAddon a)
Deprecated.
Tells if data are cached by
IExecutionContext.setCachedData(IAddon, Object) , included null value. |
void |
init()
Deprecated.
INTERNAL USE ONLY: Called by rule engine to initialize and check before execution.
|
boolean |
isDebugEnabled()
Deprecated.
Debug is enabled if LOGGER has debug enabled.
|
void |
resetCachedData()
Deprecated.
Resets all cached data for all addons.
|
Object |
resetCachedData(IAddon a)
Deprecated.
Resets cached data for one addons, returning previously cached data.
|
Object |
setCachedData(IAddon a,
Object o)
Deprecated.
Allows to cache data for a given addon.
|
getExecutionSet, getImports, getLog, getPhase, getReadBaseType, getSecurityManager, getVariables, getWrappedObject, getWriteBaseType, setExecutionSet, setLoggerName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecutionSet, getImports, getLog, getPhase, getReadBaseType, getSecurityManager, getVariables, getWriteBaseType, setExecutionSet, setLoggerName
public ExecutionContextWrapper(IExecutionContext c)
public String getLogSpaces()
IExecutionContext
getLogSpaces
in interface IExecutionContext
public String getSubLogSpaces()
IExecutionContext
getSubLogSpaces
in interface IExecutionContext
public String getParentLogSpaces()
IExecutionContext
getParentLogSpaces
in interface IExecutionContext
public void debugEntering()
IExecutionContext
debugEntering
in interface IExecutionContext
public void debugEntering(String msg)
IExecutionContext
debugEntering
in interface IExecutionContext
public void debug(String msg)
IExecutionContext
debug
in interface IExecutionContext
public void debugSub(String msg)
IExecutionContext
debugSub
in interface IExecutionContext
public void debugParent(String msg)
IExecutionContext
debugParent
in interface IExecutionContext
public void debugExiting()
IExecutionContext
debugExiting
in interface IExecutionContext
public void debugExiting(String msg)
IExecutionContext
debugExiting
in interface IExecutionContext
public boolean isDebugEnabled()
IExecutionContext
isDebugEnabled
in interface IExecutionContext
public IExecutionResult execute() throws MExecutionException
IExecutionContext
execute
in interface IExecutionContext
MExecutionException
public void init() throws MExecutionException
IExecutionContext
init
in interface IExecutionContext
MExecutionException
public Object setCachedData(IAddon a, Object o)
IExecutionContext
setCachedData
in interface IExecutionContext
public Object getCachedData(IAddon a)
IExecutionContext
IExecutionContext.setCachedData(IAddon, Object)
.getCachedData
in interface IExecutionContext
public boolean hasCachedData(IAddon a)
IExecutionContext
IExecutionContext.setCachedData(IAddon, Object)
, included null value.hasCachedData
in interface IExecutionContext
public Object resetCachedData(IAddon a)
IExecutionContext
IAddon.resetCachedData(IExecutionContext)
.resetCachedData
in interface IExecutionContext
public void resetCachedData()
IExecutionContext
resetCachedData
in interface IExecutionContext
public Appendable getOut()
getOut
in interface IExecutionContext
public Appendable getErr()
getErr
in interface IExecutionContext
public ExtPropertySource getCachedPropertySource(Object src)
IExecutionContext
getCachedPropertySource
in interface IExecutionContext
public ExtPropertySource getCachedPropertySource(Object src, Class<?> defaultSrcType)
IExecutionContext
getCachedPropertySource
in interface IExecutionContext
public Object getReadBase()
IExecutionContext
getReadBase
in interface IExecutionContext
public Object getWriteBase()
IExecutionContext
getWriteBase
in interface IExecutionContext
public IExecutionContext getRootContext()
IContext
getRootContext
in interface IExecutionContext
getRootContext
in interface IContext
getRootContext
in class ContextWrapper<IExecutionContext>
public MExecutionContext<Object> getSubContextForNewBases(Object newBases)
IExecutionContext
getSubContextForNewBases
in interface IExecutionContext
public MInOutExecutionContext<Object,Object> getSubContextForNewBases(Object newReadBase, Object newWriteBase)
IExecutionContext
getSubContextForNewBases
in interface IExecutionContext
public MInOutExecutionContext<Object,Object> getSubContextForNewVariables()
IExecutionContext
getSubContextForNewVariables
in interface IExecutionContext