public final class PropertySourceBuilder extends Object
PropertySource
.Modifier and Type | Method and Description |
---|---|
PropertySource |
build()
Creates a new immutable
PropertySource instance. |
static PropertySourceBuilder |
from(String name)
Gets a new instance of a builder.
|
static PropertySourceBuilder |
of(String name)
Gets a new instance of a builder.
|
PropertySourceBuilder |
put(String key,
String value)
Sets a new property key/value.
|
PropertySourceBuilder |
putAll(Map<String,String> values)
Put all the given key, values.
|
PropertySourceBuilder |
putAll(PropertySource propertySource)
Puts all values from the given property source.
|
String |
toString() |
PropertySourceBuilder |
withOrdinal(int ordinal)
Sets the ordinal to be used explicitly (instead evaluating it using
tamaya.ordinal . |
public static PropertySourceBuilder of(String name)
name
- The name of the property source, not null.public static PropertySourceBuilder from(String name)
name
- The name of the property source, not null.public PropertySourceBuilder put(String key, String value)
key
- the property key, not null.value
- the property value, not null.public PropertySourceBuilder putAll(Map<String,String> values)
values
- the new key/values, not null.public PropertySourceBuilder withOrdinal(int ordinal)
tamaya.ordinal
.ordinal
- the explicit ordinal to be used.public PropertySourceBuilder putAll(PropertySource propertySource)
propertySource
- the property source, not null.public PropertySource build()
PropertySource
instance.PropertySource
instance, never null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.