public final class InitialConfiguration extends Object
InitialConfigurationParameters
for the
available parameters.Configuration
Modifier and Type | Method and Description |
---|---|
static <T> T |
get(String parameter,
Object defaultValue)
Returns the value of the given parameter.
|
static <T> T |
get(String parameter,
OnDemandObjectProvider defaultValueProvider)
Returns the value of the given parameter.
|
static void |
set(String parameter,
Object value)
Sets the parameter value of the given parameter to the given value if the parameter is not already bound to
another value.
|
public static <T> T get(String parameter, OnDemandObjectProvider defaultValueProvider)
defaultValue
retrieved from the OnDemandObjectProvider
is registered and
returned.T
- the expected type of the parameter valueparameter
- the parameterdefaultValueProvider
- the provider of the default value to use if none is configured for the parameter
in question.public static <T> T get(String parameter, Object defaultValue)
defaultValue
is registered and returned.T
- the expected type of the parameter valueparameter
- the parameterdefaultValue
- the default value to use if none is configured for the parameter in question.public static void set(String parameter, Object value)
InitialConfigurationException
will be thrown.parameter
- the parametervalue
- the valueInitialConfigurationException
- if the parameter is already bound to another value.Copyright © 2014. All rights reserved.