test.de.smartics.properties.spi.config.proxy.examples
Class TestSerializableConfigurationProperties
java.lang.Object
test.de.smartics.properties.spi.config.proxy.examples.TestSerializableConfigurationProperties
-
All Implemented Interfaces:
-
ConfigurationProperties,
SerializableConfigurationProperties,
Serializable
-
public class TestSerializableConfigurationProperties
-
extends
Object
-
implements
SerializableConfigurationProperties
Dummy class for test purposes.
-
See Also:
-
Serialized Form
Method Summary |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(de.smartics.properties.api.core.domain.PropertyKey name, PropertyChangeListener listener) |
de.smartics.properties.api.core.domain.PropertiesContext |
getContext(Class<?> declaringType) |
de.smartics.properties.api.core.domain.PropertyContext |
getContext(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor) |
ConfigurationKey<?> |
getKey() |
|
getProperties(Class<T> propertiesInterface) |
DescribedProperty |
getProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor) |
DescribedProperty |
getProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue) |
DescribedProperty |
getProperty(de.smartics.properties.api.core.domain.PropertyKey key) |
DescribedProperty |
getProperty(String key) |
DescribedProperty |
getProperty(String key, Object defaultValue) |
Object |
getPropertyAsType(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor) |
Object |
getPropertyValue(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor) |
Object |
getPropertyValue(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue) |
Object |
getPropertyValue(de.smartics.properties.api.core.domain.PropertyKey key) |
Object |
getPropertyValue(String key) |
Object |
getPropertyValue(String key, Object defaultValue) |
String |
getPropertyValueAsString(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor) |
String |
getPropertyValueAsString(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue) |
String |
getPropertyValueAsString(String key) |
String |
getPropertyValueAsString(String key, Object defaultValue) |
ValidatedProperty |
getValidatedProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor, Object defaultValue) |
ValidatedProperty |
getValidatedProperty(de.smartics.properties.api.core.domain.PropertyKey key, Object defaultValue) |
ValidatedProperty |
getValidatedProperty(String key, Object defaultValue) |
boolean |
isInAdminMode() |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(de.smartics.properties.api.core.domain.PropertyKey name, PropertyChangeListener listener) |
ConfigurationProperties |
toRepresentative() |
SerializableConfigurationProperties |
toSerializable() |
void |
validate() |
void |
validate(boolean lenient, Class<?>... groups) |
void |
validate(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestSerializableConfigurationProperties
public TestSerializableConfigurationProperties(String param1)
-
Constructor.
-
Parameters:
-
param1
- dummy parameter.
isInAdminMode
public boolean isInAdminMode()
-
-
Specified by:
-
isInAdminMode
in interface
ConfigurationProperties
-
getKey
public final ConfigurationKey<?> getKey()
-
-
Specified by:
-
getKey
in interface
ConfigurationProperties
-
getContext
public final de.smartics.properties.api.core.domain.PropertiesContext getContext(Class<?> declaringType)
throws NullPointerException
-
-
Specified by:
-
getContext
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
getContext
public final de.smartics.properties.api.core.domain.PropertyContext getContext(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
throws NullPointerException
-
-
Specified by:
-
getContext
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
getProperties
public final <T> T getProperties(Class<T> propertiesInterface)
-
-
Specified by:
-
getProperties
in interface
ConfigurationProperties
-
getPropertyValue
public final Object getPropertyValue(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
throws NullPointerException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValue
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValue
public final Object getPropertyValue(String key)
throws IllegalArgumentException,
UnknownPropertyException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValue
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValue
public final Object getPropertyValue(de.smartics.properties.api.core.domain.PropertyKey key)
throws IllegalArgumentException,
UnknownPropertyException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValue
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValue
public final Object getPropertyValue(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
Object defaultValue)
throws NullPointerException,
de.smartics.properties.api.core.domain.PropertyValueConversionException,
de.smartics.properties.api.core.domain.PropertyValidationException,
UnknownPropertyException
-
-
Specified by:
-
getPropertyValue
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
-
de.smartics.properties.api.core.domain.PropertyValueConversionException
-
de.smartics.properties.api.core.domain.PropertyValidationException
-
UnknownPropertyException
getPropertyValue
public final Object getPropertyValue(String key,
Object defaultValue)
throws IllegalArgumentException,
UnknownPropertyException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValue
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
de.smartics.properties.api.core.domain.PropertyValidationException
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 final 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
getValidatedProperty
public final ValidatedProperty getValidatedProperty(de.smartics.properties.api.core.domain.PropertyKey key,
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
getValidatedProperty
public final ValidatedProperty getValidatedProperty(String key,
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
getPropertyValueAsString
public final String getPropertyValueAsString(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
throws NullPointerException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValueAsString
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValueAsString
public final String getPropertyValueAsString(String key)
throws IllegalArgumentException,
UnknownPropertyException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValueAsString
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValueAsString
public final String getPropertyValueAsString(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
Object defaultValue)
throws NullPointerException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValueAsString
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
-
de.smartics.properties.api.core.domain.PropertyValidationException
getPropertyValueAsString
public final String getPropertyValueAsString(String key,
Object defaultValue)
throws IllegalArgumentException,
UnknownPropertyException,
de.smartics.properties.api.core.domain.PropertyValidationException
-
-
Specified by:
-
getPropertyValueAsString
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
-
de.smartics.properties.api.core.domain.PropertyValidationException
validate
public void validate()
throws ConfigurationValidationException
-
-
Specified by:
-
validate
in interface
ConfigurationProperties
-
-
Throws:
-
ConfigurationValidationException
validate
public final void validate(Class<?>... groups)
throws ConfigurationValidationException
-
-
Specified by:
-
validate
in interface
ConfigurationProperties
-
-
Throws:
-
ConfigurationValidationException
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
addPropertyChangeListener
public void addPropertyChangeListener(de.smartics.properties.api.core.domain.PropertyKey name,
PropertyChangeListener listener)
throws NullPointerException
-
-
Specified by:
-
addPropertyChangeListener
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
removePropertyChangeListener
public void removePropertyChangeListener(de.smartics.properties.api.core.domain.PropertyKey name,
PropertyChangeListener listener)
throws NullPointerException
-
-
Specified by:
-
removePropertyChangeListener
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
throws NullPointerException
-
-
Specified by:
-
addPropertyChangeListener
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
throws NullPointerException
-
-
Specified by:
-
removePropertyChangeListener
in interface
ConfigurationProperties
-
-
Throws:
-
NullPointerException
toSerializable
public final SerializableConfigurationProperties toSerializable()
-
-
Specified by:
-
toSerializable
in interface
ConfigurationProperties
-
getProperty
public DescribedProperty getProperty(String key)
throws IllegalArgumentException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
getProperty
public DescribedProperty getProperty(String key,
Object defaultValue)
throws IllegalArgumentException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
getProperty
public DescribedProperty getProperty(de.smartics.properties.api.core.domain.PropertyKey key)
throws IllegalArgumentException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
getProperty
public DescribedProperty getProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor)
throws IllegalArgumentException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
getProperty
public DescribedProperty getProperty(de.smartics.properties.api.core.domain.PropertyDescriptor descriptor,
Object defaultValue)
throws IllegalArgumentException,
UnknownPropertyException
-
-
Specified by:
-
getProperty
in interface
ConfigurationProperties
-
-
Throws:
-
IllegalArgumentException
-
UnknownPropertyException
toRepresentative
public ConfigurationProperties toRepresentative()
-
-
Specified by:
-
toRepresentative
in interface
ConfigurationProperties
-
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.