test.de.smartics.properties.spi.config.support
Class DummyConfigurationProperties
java.lang.Object
de.smartics.properties.spi.config.support.AbstractConfigurationProperties
test.de.smartics.properties.spi.config.support.DummyConfigurationProperties
-
All Implemented Interfaces:
-
ConfigurationProperties,
SerializableConfigurationProperties,
ConfigurationPropertiesSpi,
Serializable
-
public class DummyConfigurationProperties
-
extends
AbstractConfigurationProperties
-
implements
Serializable,
SerializableConfigurationProperties
Used to test serializability of AbstractConfigurationProperties
.
-
See Also:
-
Serialized Form
Methods inherited from class de.smartics.properties.spi.config.support.AbstractConfigurationProperties |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getContext, getContext, getKey, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getPropertyDescriptor, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getRegistry, getResolvedProperty, getResolvedProperty, removePropertyChangeListener, removePropertyChangeListener, resolveAndConvert, toString, validate |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationProperties |
addPropertyChangeListener, addPropertyChangeListener, getContext, getContext, getKey, getProperties, getProperty, getProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getPropertyValueAsString, getResolvedProperty, getResolvedProperty, removePropertyChangeListener, removePropertyChangeListener, validate |
DummyConfigurationProperties
public DummyConfigurationProperties(ConfigurationKey key,
PropertyDescriptorRegistry registry)
throws de.smartics.util.lang.NullArgumentException
-
Default constructor.
-
Parameters:
-
key
- the key that identifies the configuration.
-
registry
- the registry to resolve property descriptors.
-
Throws:
-
de.smartics.util.lang.NullArgumentException
- if
key
or
registry
is
null
.
getResolvedProperty
public ResolvedProperty getResolvedProperty(PropertyDescriptor descriptor,
Object defaultValue)
throws IllegalArgumentException,
UnknownPropertyException,
PropertyValidationException
-
-
Specified by:
-
getResolvedProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
PropertyValidationException
validate
public void validate(boolean lenient)
throws ConfigurationValidationException
-
-
Specified by:
-
validate
in interface
ConfigurationProperties
-
-
Throws:
-
ConfigurationValidationException
toSerializable
public SerializableConfigurationProperties toSerializable()
-
-
Specified by:
-
toSerializable
in interface
ConfigurationProperties
-
getProperty
public Property getProperty(PropertyDescriptor descriptor,
Object defaultValue)
throws NullPointerException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
-
UnknownPropertyException
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.