Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.config
Class AutoConfigurationService

java.lang.Object
  extended by org.nuxeo.runtime.config.AutoConfigurationService

public class AutoConfigurationService
extends Object

Author:
Bogdan Stefanescu

Constructor Summary
AutoConfigurationService()
           
 
Method Summary
 void clear()
           
static InvokerLocator createLocator(String url)
           
static InvokerLocator createLocator(String host, int port)
           
static InvokerLocator createLocator(String protocol, String host, int port)
           
static InvokerLocator createLocator(String protocol, String host, int port, String path)
           
static InvokerLocator createLocator(String protocol, String host, int port, String path, Map<String,String> params)
           
 ServerConfiguration getServerConfiguration()
          Gets the currently connected e server config.
 Version getVersion()
           
 void load(InvokerLocator locator)
           
 void load(String uri)
           
 void load(String host, int port)
           
 void load(String protocol, String host, int port)
           
static Properties readJndiProperties(Properties properties)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoConfigurationService

public AutoConfigurationService()
Method Detail

getVersion

public Version getVersion()

clear

public void clear()

load

public void load(String uri)
          throws Exception
Throws:
Exception

load

public void load(String protocol,
                 String host,
                 int port)
          throws Exception
Throws:
Exception

load

public void load(String host,
                 int port)
          throws Exception
Throws:
Exception

load

public void load(InvokerLocator locator)
          throws Exception
Throws:
Exception

getServerConfiguration

public ServerConfiguration getServerConfiguration()
Gets the currently connected e server config.

Returns:
the server config or null if no server was connected yet

readJndiProperties

public static Properties readJndiProperties(Properties properties)

createLocator

public static InvokerLocator createLocator(String url)
                                    throws MalformedURLException
Throws:
MalformedURLException

createLocator

public static InvokerLocator createLocator(String host,
                                           int port)

createLocator

public static InvokerLocator createLocator(String protocol,
                                           String host,
                                           int port)

createLocator

public static InvokerLocator createLocator(String protocol,
                                           String host,
                                           int port,
                                           String path)

createLocator

public static InvokerLocator createLocator(String protocol,
                                           String host,
                                           int port,
                                           String path,
                                           Map<String,String> params)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.