public final class ConfigurationContextChange extends Object implements ConfigEvent<org.apache.tamaya.spi.ConfigurationContext>, Serializable
PropertySourceChangeBuilder
.
Created by Anatole on 22.10.2014.Modifier and Type | Method and Description |
---|---|
static ConfigurationContextChange |
emptyChangeSet(org.apache.tamaya.spi.ConfigurationContext configurationContext)
Get an empty change set for the given provider.
|
Collection<org.apache.tamaya.spi.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<org.apache.tamaya.spi.PropertySource> |
getRemovedPropertySources()
Get the property sources to be removed.
|
org.apache.tamaya.spi.ConfigurationContext |
getResource()
Get the underlying property provider/configuration.
|
Class<org.apache.tamaya.spi.ConfigurationContext> |
getResourceType()
Access the type of resource.
|
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<org.apache.tamaya.spi.PropertySource> |
getUpdatedPropertySources()
Get the property sources to be updated.
|
String |
getVersion()
Get the base version, usable for optimistic locking.
|
boolean |
isAffected(org.apache.tamaya.spi.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(org.apache.tamaya.spi.ConfigurationContext configurationContext)
configurationContext
- context to use for creating changesets.public Class<org.apache.tamaya.spi.ConfigurationContext> getResourceType()
ConfigEvent
getResourceType
in interface ConfigEvent<org.apache.tamaya.spi.ConfigurationContext>
public org.apache.tamaya.spi.ConfigurationContext getResource()
ConfigEvent
getResource
in interface ConfigEvent<org.apache.tamaya.spi.ConfigurationContext>
public String getVersion()
getVersion
in interface ConfigEvent<org.apache.tamaya.spi.ConfigurationContext>
public long getTimestamp()
getTimestamp
in interface ConfigEvent<org.apache.tamaya.spi.ConfigurationContext>
public Collection<PropertySourceChange> getPropertySourceChanges()
public Collection<PropertySourceChange> getPropertySourceUpdates()
public Collection<org.apache.tamaya.spi.PropertySource> getRemovedPropertySources()
public Collection<org.apache.tamaya.spi.PropertySource> getAddedPropertySources()
public Collection<org.apache.tamaya.spi.PropertySource> getUpdatedPropertySources()
public boolean isAffected(org.apache.tamaya.spi.PropertySource propertySource)
propertySource
- the propertySource, not null.public boolean isEmpty()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.