public final class ConfigurationContextChange extends Object implements Serializable
PropertySourceChangeBuilder
.
Created by Anatole on 22.10.2014.Modifier and Type | Method and Description |
---|---|
static ConfigurationContextChange |
emptyChangeSet()
Get an empty change set for the given provider.
|
Collection<PropertySource> |
getAddedPropertySources()
Get the property sources to be added.
|
Collection<PropertySourceChange> |
getPropertySourceChanges()
Get the changes recorded.
|
Collection<PropertySourceChange> |
getPropertySourceUpdates()
Get the property source updates.
|
Collection<PropertySource> |
getRemovedPropertySources()
Get the property sources to be removed.
|
long |
getTimestamp()
Get the timestamp in millis from the current epoch. it is expected that the timestamp and the version are unique to
identify a changeset.
|
Collection<PropertySource> |
getUpdatedPropertySources()
Get the property sources to be updated.
|
String |
getVersion()
Get the base version, usable for optimistic locking.
|
boolean |
isAffected(PropertySource propertySource)
Checks if the given propertySource is affected (added, changed or removed).
|
boolean |
isEmpty()
CHecks if the current change set does not contain any changes.
|
String |
toString() |
public static ConfigurationContextChange emptyChangeSet()
public String getVersion()
public long getTimestamp()
public Collection<PropertySourceChange> getPropertySourceChanges()
public Collection<PropertySourceChange> getPropertySourceUpdates()
public Collection<PropertySource> getRemovedPropertySources()
public Collection<PropertySource> getAddedPropertySources()
public Collection<PropertySource> getUpdatedPropertySources()
public boolean isAffected(PropertySource propertySource)
propertySource
- the propertySource, not null.public boolean isEmpty()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.