com.arsdigita.runtime
Class ScriptContext

java.lang.Object
  extended bycom.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>

Field Summary
static String versionId
           
 
Constructor Summary
ScriptContext(Session ssn, ParameterLoader params)
          Constructs a new ScriptContext object with the given Session and ParameterLoader.
 
Method Summary
 ParameterLoader getParameterLoader()
          Deprecated. Use ParameterContext.load(com.arsdigita.util.parameter.ParameterReader, com.arsdigita.util.parameter.ErrorList) instead.
 Session getSession()
          Returns the persistent session for this ScriptContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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 21 2004:2337 UTC