org.omnaest.utils.beans.adapter.source
Class SourcePropertyAccessorDecoratorDefaultValue

java.lang.Object
  extended by org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
      extended by org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecoratorDefaultValue
All Implemented Interfaces:
Serializable, SourcePropertyAccessor

public class SourcePropertyAccessorDecoratorDefaultValue
extends SourcePropertyAccessorDecorator

SourcePropertyAccessorDecorator which will listen to DefaultValue annotated Methods

Author:
Omnaest
See Also:
SourcePropertyAccessor, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.beans.adapter.source.SourcePropertyAccessor
SourcePropertyAccessor.PropertyMetaInformation
 
Field Summary
 
Fields inherited from class org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
sourcePropertyAccessor
 
Constructor Summary
SourcePropertyAccessorDecoratorDefaultValue(SourcePropertyAccessor sourcePropertyAccessor)
           
 
Method Summary
 Object getValue(String propertyName, Class<?> returnType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Returns the value related to the given property name.
 void setValue(String propertyName, Object value, Class<?> parameterType, SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
          Sets the given value for the given property name.
 
Methods inherited from class org.omnaest.utils.beans.adapter.source.SourcePropertyAccessorDecorator
setPropertyAccessorDecorator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourcePropertyAccessorDecoratorDefaultValue

public SourcePropertyAccessorDecoratorDefaultValue(SourcePropertyAccessor sourcePropertyAccessor)
Parameters:
sourcePropertyAccessor -
See Also:
SourcePropertyAccessorDecoratorDefaultValue
Method Detail

setValue

public void setValue(String propertyName,
                     Object value,
                     Class<?> parameterType,
                     SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
Description copied from interface: SourcePropertyAccessor
Sets the given value for the given property name.

parameterType - : type of the first parameter of the property setter method, or type of the return type of the getter method
See Also:
SourcePropertyAccessor.PropertyMetaInformation

getValue

public Object getValue(String propertyName,
                       Class<?> returnType,
                       SourcePropertyAccessor.PropertyMetaInformation propertyMetaInformation)
Description copied from interface: SourcePropertyAccessor
Returns the value related to the given property name.

Returns:
See Also:
SourcePropertyAccessor.PropertyMetaInformation


Copyright © 2013. All Rights Reserved.