Package org.xwiki.script
Interface ScriptContextManager
-
@Role public interface ScriptContextManager
Helpers forScriptContext
management. Like context initialization, etc.- Version:
- $Id: f3faf54fac416f2e02f6a20d5fe14817ffb62b8c $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ScriptContext
getCurrentScriptContext()
ScriptContext
getScriptContext()
-
-
-
Method Detail
-
getScriptContext
ScriptContext getScriptContext()
- Returns:
- a clean and initialized
ScriptContext
. Clean means that allScriptContextInitializer
will have been executed on the returned Script Context which will thus contain re-initialized values for the values which are set inScriptContextInitializer
. The values that are set before calling this method and for which there are noScriptContextInitializer
will not be modified.
-
getCurrentScriptContext
default ScriptContext getCurrentScriptContext()
- Returns:
- the current
ScriptContext
instance without any modification. This is mostly used when the only need is to modify the script context. In doubt always usegetScriptContext()
. - Since:
- 8.3M1
- See Also:
getScriptContext()
-
-