Changeset 11269


Ignore:
Timestamp:
2006-02-16T13:42:10+13:00 (18 years ago)
Author:
kjdon
Message:

now we save the original config element as config_info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r11012 r11269  
    7777
    7878    // should these things be separated into local and remote??
     79
     80    /** the original xml config element */
     81    public Element config_info = null;
    7982
    8083    /** list of collections that can be reached */
     
    175178    }
    176179   
    177     Element config_elem = config_doc.getDocumentElement();
     180    config_info = config_doc.getDocumentElement();
    178181   
    179182    this.module_map = new HashMap();
    180183   
    181184    // load up the services
    182     Element service_rack_list = (Element)GSXML.getChildByTagName(config_elem, GSXML.SERVICE_CLASS_ELEM+GSXML.LIST_MODIFIER);
     185    Element service_rack_list = (Element)GSXML.getChildByTagName(config_info, GSXML.SERVICE_CLASS_ELEM+GSXML.LIST_MODIFIER);
    183186    configureServices(service_rack_list);
    184187   
    185188    // load up the service clusters
    186     Element cluster_list = (Element)GSXML.getChildByTagName(config_elem, GSXML.CLUSTER_ELEM+GSXML.LIST_MODIFIER);   
     189    Element cluster_list = (Element)GSXML.getChildByTagName(config_info, GSXML.CLUSTER_ELEM+GSXML.LIST_MODIFIER);   
    187190    configureClusters(cluster_list);
    188191
     
    191194
    192195    // load up the external sites - this also adds their services/clusters/collections to the other lists - so must be done last
    193     Element site_list = (Element)GSXML.getChildByTagName(config_elem, GSXML.SITE_ELEM+GSXML.LIST_MODIFIER);
     196    Element site_list = (Element)GSXML.getChildByTagName(config_info, GSXML.SITE_ELEM+GSXML.LIST_MODIFIER);
    194197    configureSites(site_list);
    195198   
Note: See TracChangeset for help on using the changeset viewer.