public class RblSettings extends Properties
This class provides a container for basic settings for the RblServer. The class basically is just Java Properties class extended by a set of default settings.
defaults| Constructor and Description |
|---|
RblSettings()
Creates a new set of default settings.
|
| Modifier and Type | Method and Description |
|---|---|
static RblSettings |
getDefaults()
This static method returns the set of default properties for any
RblServer.
|
static RblSettings |
read(String file)
This method reads properties from the given file.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamespublic static RblSettings getDefaults()
public static RblSettings read(String file) throws Exception
This method reads properties from the given file. It will determine the
default settings by the method getDefaults() and override
all properties found in the given file.
In a addition to that, the system properties are checked as well. Any system property, e.g. set using
java ... -Drbl.domain=rbl.localnet ...
will override properties found in the defaults or in the specified settings file.
file - ExceptionCopyright © 2013. All Rights Reserved.