public static final class Configuration.Builder
extends java.lang.Object
Configuration
instances.
This class also provides static factory methods for easy creation of
commonly used Configuration
s.
Constructor and Description |
---|
Builder()
Constructor.
|
Builder(Configuration config)
Constructor.
|
Builder(java.util.Map<java.lang.String,java.lang.Object> properties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
build() |
Configuration.Builder |
register(java.lang.String propName,
java.lang.Object value)
Registers a setting for the configuration to be built.
|
public Builder()
public Builder(Configuration config)
Initializes the newly constructed instance with properties of the specified configuration.
config
- configuration to provide initial properties for this
instance; muse not be null
public Builder(java.util.Map<java.lang.String,java.lang.Object> properties)
Initializes the newly constructed instance with the specified properties.
properties
- initial configuration properties; must not be null
public Configuration.Builder register(java.lang.String propName, java.lang.Object value)
propName
- name of the settingvalue
- value of the settingpublic Configuration build()