Changeset 29658
- Timestamp:
- 01/27/08 12:03:33 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/AutoConfigurationService.java
r29016 r29658 37 37 public class AutoConfigurationService { 38 38 39 public AutoConfigurationService config;39 ServerConfiguration config; // last loaded server config 40 40 41 41 ServiceManager serviceMgr; … … 85 85 // get the configuration based on the client remoting version and the 86 86 // locator used to access the server 87 ServerConfiguration cfg = server.getConfiguration(locator, version);87 config = server.getConfiguration(locator, version); 88 88 clear(); 89 c fg.install();89 config.install(); 90 90 } catch (Exception e) { // compatibility code - for runtime that doesn't supports ServerConfiguration 91 91 e.printStackTrace(); … … 99 99 } 100 100 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 101 110 protected void loadCompat(Server server, InvokerLocator locator) throws Exception { 102 111 new Configuration().load(server, locator.getHost(), locator.getLocatorURI());
