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, de.smartics.properties.api.core.domain.PropertyDescriptorRegistry registry)
          Default constructor.
 
Method Summary
 DescribedProperty getProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue)
           
 Object getPropertyAsType(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
           
 ValidatedProperty getValidatedProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue)
           
 boolean isInAdminMode()
           
 SerializableConfigurationProperties toSerializable()
           
 void validate(boolean lenient, Class<?>... groups)
           
 void validate(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Class<?>... ifInOneOfTheseGroups)
           
 void validate(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, String value, Class<?>... ifInOneOfTheseGroups)
           
 
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, getPropertyValueSecurity, getRegistry, getValidatedProperty, getValidatedProperty, removePropertyChangeListener, removePropertyChangeListener, resolveAndConvert, resolveAndConvertAndValidate, toRepresentative, toString, validate, validate, 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, getValidatedProperty, getValidatedProperty, removePropertyChangeListener, removePropertyChangeListener, toRepresentative, validate, validate
 

Constructor Detail

DummyConfigurationProperties

public DummyConfigurationProperties(ConfigurationKey<?> key,
                                    de.smartics.properties.api.core.domain.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

isInAdminMode

public boolean isInAdminMode()
Specified by:
isInAdminMode in interface ConfigurationProperties

getPropertyAsType

public Object getPropertyAsType(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
                         throws IllegalArgumentException,
                                UnknownPropertyException,
                                de.smartics.properties.api.core.domain.PropertyValueConversionException,
                                de.smartics.properties.api.core.security.SecurityException,
                                de.smartics.properties.api.core.app.PropertyRootException
Specified by:
getPropertyAsType in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
de.smartics.properties.api.core.domain.PropertyValueConversionException
de.smartics.properties.api.core.security.SecurityException
de.smartics.properties.api.core.app.PropertyRootException

getValidatedProperty

public ValidatedProperty getValidatedProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
                                              Object defaultValue)
                                       throws IllegalArgumentException,
                                              UnknownPropertyException,
                                              de.smartics.properties.api.core.domain.PropertyValidationException
Specified by:
getValidatedProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
de.smartics.properties.api.core.domain.PropertyValidationException

validate

public void validate(boolean lenient,
                     Class<?>... groups)
              throws ConfigurationValidationException
Specified by:
validate in interface ConfigurationProperties
Throws:
ConfigurationValidationException

validate

public void validate(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
                     Class<?>... ifInOneOfTheseGroups)
              throws ConfigurationValidationException
Specified by:
validate in interface ConfigurationProperties
Throws:
ConfigurationValidationException

validate

public void validate(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
                     String value,
                     Class<?>... ifInOneOfTheseGroups)
              throws ConfigurationValidationException
Specified by:
validate in interface ConfigurationProperties
Throws:
ConfigurationValidationException

toSerializable

public SerializableConfigurationProperties toSerializable()
Specified by:
toSerializable in interface ConfigurationProperties

getProperty

public DescribedProperty getProperty(de.smartics.properties.api.core.domain.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.