com.arsdigita.runtime
Class AbstractScript

java.lang.Object
  extended bycom.arsdigita.util.parameter.AbstractParameterContext
      extended bycom.arsdigita.runtime.AbstractScript
All Implemented Interfaces:
ParameterContext, Script
Direct Known Subclasses:
Check, HostLoader, PackageLoader

public abstract class AbstractScript
extends AbstractParameterContext
implements Script

The AbstractScript class serves as a base class for scripts intended to execute within the runtime environment provided by CCM. A developer may write one of these scripts by extending AbstractScript and providing a noargs constructor that registers any parameters required by the script's run method.

Version:
$Revision: #5 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
protected AbstractScript()
          Default constructor for derived classes.
 
Method Summary
abstract  void run(ScriptContext context)
          The run method is inoked to execute the script.
 
Methods inherited from class com.arsdigita.util.parameter.AbstractParameterContext
get, get, getParameters, load, load, loadInfo, register, save, set, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.util.parameter.ParameterContext
get, get, getParameters, load, save, set, validate
 

Field Detail

versionId

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

AbstractScript

protected AbstractScript()
Default constructor for derived classes.

Method Detail

run

public abstract void run(ScriptContext context)
The run method is inoked to execute the script. Before calling this method any required parameters registered by the noargs constructer should be set.

Specified by:
run in interface Script
Parameters:
context - the context in which to run the script


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC