Changeset 14534

Show
Ignore:
Timestamp:
17.09.2007 15:46:42 (12 years ago)
Author:
qq6
Message:

set up the library name

Files:
1 modified

Legend:

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

    r14399 r14534  
    7575  protected String site_http_address=null; 
    7676   
     77  protected String library_name = null; 
     78 
    7779  /** map of names to Module objects */ 
    7880  protected HashMap module_map=null; 
     
    131133  } 
    132134   
     135 /** site_name must be set before configure is called */ 
     136  public void setLibraryName(String library_name) { 
     137    this.library_name = library_name; 
     138  } 
     139  public String getLibraryName() { 
     140    return this.library_name; 
     141  } 
     142 
    133143  /** 
    134144   * configures the system 
     
    385395        //ServiceRack s = (ServiceRack)Class.forName("org.greenstone.gsdl3.service."+service_name).newInstance(); 
    386396        ServiceRack s = (ServiceRack)service_class.newInstance(); 
    387         s.setSiteHome(this.site_home); 
     397    s.setSiteHome(this.site_home); 
    388398        s.setSiteAddress(this.site_http_address); 
     399    s.setLibraryName(this.library_name); 
    389400        s.setMessageRouter(this); 
    390401        // pass the XML node to the service for service configuration