Changeset 4695


Ignore:
Timestamp:
2003-06-18T11:43:52+12:00 (21 years ago)
Author:
kjdon
Message:

no longer use ConfigVars, use a HashMap instead

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/action
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/Action.java

    r4257 r4695  
    1212import java.io.File;
    1313import java.util.Vector;
     14import java.util.HashMap;
     15
    1416/** base class for Actions */
    1517abstract public class Action {
    1618
    17     /** the interface setup variables */
    18     protected ConfigVars config_=null;
     19    /** the system set up variables */
     20    protected HashMap config_params = null;
    1921    /** container Document to create XML Nodes */
    2022    protected Document doc_=null;
     
    3032    doc_ = converter_.newDOM();
    3133    }
    32     /** gsdl_home_ must be set before configure called */
    33     public void setConfigVars(ConfigVars config) {
    34     config_ = config;
     34    /** the config variables must be set before configure is called */
     35    public void setConfigParams(HashMap params) {
     36    this.config_params = params;
    3537    }
    3638    /** sets the message router */
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/AppletAction.java

    r4257 r4695  
    8282    // should this be done here or by web receptionist??
    8383    // cant really have an applet without web?
    84     editLocalParams(app_desc, config_.library_name_, collection);
     84    editLocalParams(app_desc, (String)config_params.get(GSConstants.LIBRARY_NAME), collection);
    8585    page_response.appendChild(app_desc);
    8686   
Note: See TracChangeset for help on using the changeset viewer.