test.de.smartics.properties.spi.config.support
Class DummyConfigurationProperties

Package class diagram package DummyConfigurationProperties
java.lang.Object
  extended by de.smartics.properties.spi.config.support.AbstractConfigurationProperties
      extended by 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

Constructor Summary
DummyConfigurationProperties(ConfigurationKey key, PropertyDescriptorRegistry registry)
          Default constructor.
 
Method Summary
 Property getProperty(PropertyDescriptor descriptor, Object defaultValue)
           
 ResolvedProperty getResolvedProperty(PropertyDescriptor descriptor, Object defaultValue)
           
 SerializableConfigurationProperties toSerializable()
           
 void validate(boolean lenient)
           
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

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.
Method Detail

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.