public final class ConfigManager extends Object
This provides access to all configuration properties.
The root of the configuration objects can be obtained using
getConfig()
. This may be used in either a server or client
environment. In a server environment the set of configurable properties is
larger and from within a server environment you can use
getServerConfig()
to get the full configuration.
Having obtained the root configuration object you can navigate to the appropriate subordinate configuration objects to set or get properties as required.
In a server environment the configuration is usually loaded from the XML configuration files but when using an embedded server there may be no XML files and all configuration can be set manually as required.
Once a server has been started most configuration properties are locked and can no longer be changed. In a client environment there is no such restriction but some properties will only take effect if set before a connection to a server is made.
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap(ServerConfig config) |
static RootConfig |
getConfig()
Returns the root configuration object for the current VM.
|
static ServerConfig |
getServerConfig()
This convenience method may be used when you know you are calling from
within a server VM.
|
public static void bootstrap(ServerConfig config)
public static RootConfig getConfig()
public static ServerConfig getServerConfig()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.