|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.support.AbstractConfigurationProperties de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesManagement de.smartics.properties.impl.config.ds.DataSourceConfigurationProperties
@ThreadSafe public final class DataSourceConfigurationProperties
Implementation based on Properties
.
Constructor Summary | |
---|---|
DataSourceConfigurationProperties(ConfigurationKey key, PropertyDescriptorRegistry registry, PropertiesStore store) Default constructor. |
Method Summary | |
---|---|
protected Property |
deletePropertyInStore(String name) Deletes the property with the given name. |
protected PropertyCollection |
getPropertyCollectionFromStore() Returns a collection to iterate over all properties of the configuration. |
protected Property |
getPropertyFromStore(String name) Fetches the property from the store by the given name. |
protected Property |
setPropertyToStore(String name, String value) Sets the property to the given value. |
SerializableConfigurationPropertiesManagement |
toSerializable() Creates a serializable variant of this implementation. |
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationPropertiesManagement |
---|
addDefinitions, addDescriptors, flush, getDescriptor, getDescriptor, getMandatoryPropertyDescriptors, getProperty, getProperty, getResolvedProperty, setProperty, unsetProperty, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement |
---|
addDefinitions, addDescriptors, flush, getDescriptor, getDescriptor, getMandatoryPropertyDescriptors, getRegistry, setProperty, unsetProperty |
Methods inherited from interface de.smartics.properties.spi.config.support.ConfigurationPropertiesSpi |
---|
getProperties |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationProperties |
---|
addPropertyChangeListener, addPropertyChangeListener, getContext, getContext, getKey, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getResolvedProperty, getResolvedProperty, getResolvedProperty, removePropertyChangeListener, removePropertyChangeListener, validate, validate |
Constructor Detail |
---|
public DataSourceConfigurationProperties(ConfigurationKey key, PropertyDescriptorRegistry registry, PropertiesStore store) throws de.smartics.util.lang.NullArgumentException
key
- the key that identifies the configuration.
registry
- the registry to resolve property descriptors.
store
- the store containing properties.
de.smartics.util.lang.NullArgumentException
- if
key
or
registry
is
null
.
Method Detail |
---|
protected Property getPropertyFromStore(String name)
AbstractConfigurationPropertiesManagement
getPropertyFromStore
in class
AbstractConfigurationPropertiesManagement
name
- the name of the property to fetch.
null
(although the value of the property may be
null
).
protected Property setPropertyToStore(String name, String value) throws NullPointerException, PropertyValidationException, ReadOnlyPropertyException
AbstractConfigurationPropertiesManagement
setPropertyToStore
in class
AbstractConfigurationPropertiesManagement
name
- the name of the property to set.
value
- the value to the property.
null
(although the value of the property may be
null
).
NullPointerException
- if
name
is
null
.
PropertyValidationException
ReadOnlyPropertyException
protected Property deletePropertyInStore(String name)
AbstractConfigurationPropertiesManagement
deletePropertyInStore
in class
AbstractConfigurationPropertiesManagement
name
- the name of the property to delete.
public SerializableConfigurationPropertiesManagement toSerializable()
ConfigurationProperties
toSerializable
in interface
ConfigurationProperties
toSerializable
in interface
ConfigurationPropertiesManagement
ConfigurationPropertiesProxy
,
ConfigurationPropertiesManagementProxy
protected PropertyCollection getPropertyCollectionFromStore()
AbstractConfigurationPropertiesManagement
getPropertyCollectionFromStore
in class
AbstractConfigurationPropertiesManagement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |