test.de.smartics.properties.spi.config.proxy.examples
Class TestSerializableConfigurationProperties

Package class diagram package TestSerializableConfigurationProperties
java.lang.Object
  extended by 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

Constructor Summary
TestSerializableConfigurationProperties(String param1)
          Constructor.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void addPropertyChangeListener(PropertyKey name, PropertyChangeListener listener)
           
 PropertiesContext getContext(Class<?> declaringType)
           
 PropertyContext getContext(PropertyDescriptor descriptor)
           
 ConfigurationKey getKey()
           
<T> T
getProperties(Class<T> propertiesInterface)
           
 Property getProperty(PropertyDescriptor descriptor)
           
 Property getProperty(PropertyDescriptor descriptor, Object defaultValue)
           
 Property getProperty(PropertyKey key)
           
 Property getProperty(String key)
           
 Property getProperty(String key, Object defaultValue)
           
 Object getPropertyValue(PropertyDescriptor descriptor)
           
 Object getPropertyValue(PropertyDescriptor descriptor, Object defaultValue)
           
 Object getPropertyValue(PropertyKey key)
           
 Object getPropertyValue(String key)
           
 Object getPropertyValue(String key, Object defaultValue)
           
 String getPropertyValueAsString(PropertyDescriptor descriptor)
           
 String getPropertyValueAsString(PropertyDescriptor descriptor, Object defaultValue)
           
 String getPropertyValueAsString(String key)
           
 String getPropertyValueAsString(String key, Object defaultValue)
           
 ResolvedProperty getResolvedProperty(PropertyDescriptor descriptor, Object defaultValue)
           
 ResolvedProperty getResolvedProperty(PropertyKey key, Object defaultValue)
           
 ResolvedProperty getResolvedProperty(String key, Object defaultValue)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void removePropertyChangeListener(PropertyKey name, PropertyChangeListener listener)
           
 SerializableConfigurationProperties toSerializable()
           
 void validate()
           
 void validate(boolean lenient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSerializableConfigurationProperties

public TestSerializableConfigurationProperties(String param1)
Constructor.

Parameters:
param1 - dummy parameter.
Method Detail

getKey

public final ConfigurationKey getKey()
Specified by:
getKey in interface ConfigurationProperties

getContext

public final PropertiesContext getContext(Class<?> declaringType)
                                   throws NullPointerException
Specified by:
getContext in interface ConfigurationProperties
Throws:
NullPointerException

getContext

public final PropertyContext getContext(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(PropertyDescriptor descriptor)
                              throws NullPointerException,
                                     PropertyValidationException
Specified by:
getPropertyValue in interface ConfigurationProperties
Throws:
NullPointerException
PropertyValidationException

getPropertyValue

public final Object getPropertyValue(String key)
                              throws IllegalArgumentException,
                                     UnknownPropertyException,
                                     PropertyValidationException
Specified by:
getPropertyValue in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getPropertyValue

public final Object getPropertyValue(PropertyKey key)
                              throws IllegalArgumentException,
                                     UnknownPropertyException,
                                     PropertyValidationException
Specified by:
getPropertyValue in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getPropertyValue

public final Object getPropertyValue(PropertyDescriptor descriptor,
                                     Object defaultValue)
                              throws NullPointerException,
                                     PropertyValueConversionException,
                                     PropertyValidationException,
                                     UnknownPropertyException
Specified by:
getPropertyValue in interface ConfigurationProperties
Throws:
NullPointerException
PropertyValueConversionException
PropertyValidationException
UnknownPropertyException

getPropertyValue

public final Object getPropertyValue(String key,
                                     Object defaultValue)
                              throws IllegalArgumentException,
                                     UnknownPropertyException,
                                     PropertyValidationException
Specified by:
getPropertyValue in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getResolvedProperty

public final ResolvedProperty getResolvedProperty(PropertyDescriptor descriptor,
                                                  Object defaultValue)
                                           throws IllegalArgumentException,
                                                  UnknownPropertyException,
                                                  PropertyValidationException
Specified by:
getResolvedProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getResolvedProperty

public final ResolvedProperty getResolvedProperty(PropertyKey key,
                                                  Object defaultValue)
                                           throws IllegalArgumentException,
                                                  UnknownPropertyException,
                                                  PropertyValidationException
Specified by:
getResolvedProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getResolvedProperty

public final ResolvedProperty getResolvedProperty(String key,
                                                  Object defaultValue)
                                           throws IllegalArgumentException,
                                                  UnknownPropertyException,
                                                  PropertyValidationException
Specified by:
getResolvedProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getPropertyValueAsString

public final String getPropertyValueAsString(PropertyDescriptor descriptor)
                                      throws NullPointerException,
                                             PropertyValidationException
Specified by:
getPropertyValueAsString in interface ConfigurationProperties
Throws:
NullPointerException
PropertyValidationException

getPropertyValueAsString

public final String getPropertyValueAsString(String key)
                                      throws IllegalArgumentException,
                                             UnknownPropertyException,
                                             PropertyValidationException
Specified by:
getPropertyValueAsString in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

getPropertyValueAsString

public final String getPropertyValueAsString(PropertyDescriptor descriptor,
                                             Object defaultValue)
                                      throws NullPointerException,
                                             PropertyValidationException
Specified by:
getPropertyValueAsString in interface ConfigurationProperties
Throws:
NullPointerException
PropertyValidationException

getPropertyValueAsString

public final String getPropertyValueAsString(String key,
                                             Object defaultValue)
                                      throws IllegalArgumentException,
                                             UnknownPropertyException,
                                             PropertyValidationException
Specified by:
getPropertyValueAsString in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException
PropertyValidationException

validate

public void validate()
              throws ConfigurationValidationException
Specified by:
validate in interface ConfigurationProperties
Throws:
ConfigurationValidationException

validate

public void validate(boolean lenient)
              throws ConfigurationValidationException
Specified by:
validate in interface ConfigurationProperties
Throws:
ConfigurationValidationException

addPropertyChangeListener

public void addPropertyChangeListener(PropertyKey name,
                                      PropertyChangeListener listener)
                               throws NullPointerException
Specified by:
addPropertyChangeListener in interface ConfigurationProperties
Throws:
NullPointerException

removePropertyChangeListener

public void removePropertyChangeListener(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 Property getProperty(String key)
                     throws IllegalArgumentException,
                            UnknownPropertyException
Specified by:
getProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException

getProperty

public Property getProperty(String key,
                            Object defaultValue)
                     throws IllegalArgumentException,
                            UnknownPropertyException
Specified by:
getProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException

getProperty

public Property getProperty(PropertyKey key)
                     throws IllegalArgumentException,
                            UnknownPropertyException
Specified by:
getProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException

getProperty

public Property getProperty(PropertyDescriptor descriptor)
                     throws IllegalArgumentException,
                            UnknownPropertyException
Specified by:
getProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException

getProperty

public Property getProperty(PropertyDescriptor descriptor,
                            Object defaultValue)
                     throws IllegalArgumentException,
                            UnknownPropertyException
Specified by:
getProperty in interface ConfigurationProperties
Throws:
IllegalArgumentException
UnknownPropertyException


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.