Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.config
Class ConfigurationHandler

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

public abstract class ConfigurationHandler
extends Object

Author:
Bogdan Stefanescu

Constructor Summary
ConfigurationHandler()
           
 
Method Summary
 boolean accept(Version v)
           
abstract  ServerConfiguration buildConfig()
          Gets the configuration for the current running framework.
static ServerConfiguration buildConfig(Version version)
           
static ConfigurationHandler getHandler(Version version)
           
abstract  Version getVersion()
           
abstract  ServerConfiguration loadConfig(InvokerLocator locator, Server server)
          Loads the configuration of the given remote server.
static ServerConfiguration loadConfig(InvokerLocator locator, Server server, String version)
           
static ServerConfiguration loadConfig(InvokerLocator locator, Server server, Version version)
           
static void registerHandler(ConfigurationHandler handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationHandler

public ConfigurationHandler()
Method Detail

registerHandler

public static void registerHandler(ConfigurationHandler handler)

getHandler

public static ConfigurationHandler getHandler(Version version)
                                       throws UnsupportedServerVersionException
Throws:
UnsupportedServerVersionException

loadConfig

public static ServerConfiguration loadConfig(InvokerLocator locator,
                                             Server server,
                                             String version)
                                      throws ConfigurationException
Throws:
ConfigurationException

loadConfig

public static ServerConfiguration loadConfig(InvokerLocator locator,
                                             Server server,
                                             Version version)
                                      throws ConfigurationException
Throws:
ConfigurationException

buildConfig

public static ServerConfiguration buildConfig(Version version)
                                       throws ConfigurationException
Throws:
ConfigurationException

accept

public boolean accept(Version v)

getVersion

public abstract Version getVersion()

loadConfig

public abstract ServerConfiguration loadConfig(InvokerLocator locator,
                                               Server server)
                                        throws ConfigurationException
Loads the configuration of the given remote server.

Parameters:
locator - the server locator
server - the server proxy object
Returns:
the configuration
Throws:
ConfigurationException

buildConfig

public abstract ServerConfiguration buildConfig()
                                         throws ConfigurationException
Gets the configuration for the current running framework.

Returns:
the configuration
Throws:
ConfigurationException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.