com.arsdigita.runtime
Class ScriptContext
java.lang.Object
com.arsdigita.runtime.ScriptContext
- public class ScriptContext
- extends Object
The ScriptContext class is passed into the Script.run(ScriptContext)
method in order to provide an instance
of the Script
interface access to the proper context in
which to execute.
- Version:
- $Revision: #4 $ $Date: 2004/04/07 $
- Author:
- Rafael H. Schloming <rhs@mit.edu>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ScriptContext
public ScriptContext(Session ssn,
ParameterLoader params)
- Constructs a new ScriptContext object with the given Session
and ParameterLoader.
- Parameters:
ssn
- The persistent session to provide to the executing
script.params
- The parameter loader to provide to the executing
script.
getSession
public Session getSession()
- Returns the persistent session for this ScriptContext.
- Returns:
- a persistent session
getParameterLoader
public ParameterLoader getParameterLoader()
- Deprecated. Use
ParameterContext.load(com.arsdigita.util.parameter.ParameterReader, com.arsdigita.util.parameter.ErrorList)
instead.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC