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, getPropertyValueSecurity, getRegistry, getValidatedProperty, getValidatedProperty, removePropertyChangeListener, removePropertyChangeListener, resolveAndConvert, resolveAndConvertAndValidate, toRepresentative, toString, validate, validate, 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, getValidatedProperty, getValidatedProperty, removePropertyChangeListener, removePropertyChangeListener, toRepresentative, validate, validate |
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
.
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.