public final class MutableConfigurationProvider extends Object
MutableConfiguration
instances to change configuration and commit changes.Modifier and Type | Method and Description |
---|---|
static ChangePropagationPolicy |
getApplyAllChangePolicy()
This propagation policy writes through all changes to all mutable property sources, where applicable.
|
static ChangePropagationPolicy |
getApplyMostSignificantOnlyChangePolicy()
This propagation policy writes changes only once to the most significant property source, where a change is
applicable.
|
static ChangePropagationPolicy |
getApplyNonePolicy()
This propagation policy writes changes only once to the most significant property source, where a change is
applicable.
|
static ChangePropagationPolicy |
getApplySelectiveChangePolicy(String... propertySourceNames)
This propagation policy writes changes only once to the most significant property source, where a change is
applicable.
|
static MutableConfiguration |
getMutableConfiguration()
Creates a new
MutableConfiguration for the given default configuration, using all
MutablePropertySource instances found in its context and autoCommit = false . |
static MutableConfiguration |
getMutableConfiguration(org.apache.tamaya.Configuration configuration)
Creates a new
MutableConfiguration for the given configuration, using all
MutablePropertySource instances found in its context and autoCommit = false . |
public static MutableConfiguration getMutableConfiguration()
MutableConfiguration
for the given default configuration, using all
MutablePropertySource
instances found in its context and autoCommit = false
.public static MutableConfiguration getMutableConfiguration(org.apache.tamaya.Configuration configuration)
MutableConfiguration
for the given configuration, using all
MutablePropertySource
instances found in its context and autoCommit = false
.configuration
- the configuration to use to write the changes/config.public static ChangePropagationPolicy getApplyAllChangePolicy()
public static ChangePropagationPolicy getApplyMostSignificantOnlyChangePolicy()
ChangePropagationPolicy
implementation, never null.public static ChangePropagationPolicy getApplySelectiveChangePolicy(String... propertySourceNames)
propertySourceNames
- the names of the mutable property sources to be considered for writing any changes to.ChangePropagationPolicy
implementation, never null.public static ChangePropagationPolicy getApplyNonePolicy()
ChangePropagationPolicy
implementation, never null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.