org.xwiki.script.internal
Class DefaultScriptContextManager

java.lang.Object
  extended by org.xwiki.script.internal.DefaultScriptContextManager
All Implemented Interfaces:
ScriptContextManager

@Component
@Singleton
public class DefaultScriptContextManager
extends java.lang.Object
implements ScriptContextManager

Default implementation of ScriptContextManager.

Version:
$Id$

Constructor Summary
DefaultScriptContextManager()
           
 
Method Summary
 javax.script.ScriptContext getScriptContext()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScriptContextManager

public DefaultScriptContextManager()
Method Detail

getScriptContext

public javax.script.ScriptContext getScriptContext()

Specified by:
getScriptContext in interface ScriptContextManager
Returns:
a clean and initialized ScriptContext. Clean means that all ScriptContextInitializer will have been executed on the returned Script Context which will thus contain re-initialized values for the values which are set in ScriptContextInitializer. The values that are set before calling this method and for which there are no ScriptContextInitializer will not be modified.
See Also:
ScriptContextManager.getScriptContext()


Copyright © 2004-2011 XWiki. All Rights Reserved.