Changeset 29658

Show
Ignore:
Timestamp:
01/27/08 12:03:33 (10 months ago)
Author:
bstefanescu
Message:

storing current config in a member var

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/AutoConfigurationService.java

    r29016 r29658  
    3737public class AutoConfigurationService { 
    3838 
    39     public AutoConfigurationService config; 
     39    ServerConfiguration config; // last loaded server config 
    4040 
    4141    ServiceManager serviceMgr; 
     
    8585                // get the configuration based on the client remoting version and the 
    8686                // locator used to access the server 
    87                 ServerConfiguration cfg = server.getConfiguration(locator, version); 
     87                config = server.getConfiguration(locator, version); 
    8888                clear(); 
    89                 cfg.install(); 
     89                config.install(); 
    9090            } catch (Exception e) { // compatibility code - for runtime that doesn't supports ServerConfiguration 
    9191                e.printStackTrace(); 
     
    9999    } 
    100100 
     101 
     102    /** 
     103     * Get the currently connected e server config 
     104     * @return the server config or null if no server was connected yet 
     105     */ 
     106    public ServerConfiguration getServerConfiguration() { 
     107        return config; 
     108    } 
     109 
    101110    protected void loadCompat(Server server, InvokerLocator locator) throws Exception { 
    102111        new Configuration().load(server, locator.getHost(), locator.getLocatorURI());