org.directwebremoting.datasync
Class PojoAttributeValueExtractor

java.lang.Object
  extended by org.directwebremoting.datasync.PojoAttributeValueExtractor
All Implemented Interfaces:
AttributeValueExtractor

public class PojoAttributeValueExtractor
extends java.lang.Object
implements AttributeValueExtractor

An AttributeValueExtractor that simply calls LocalUtil.getProperty(java.lang.Object, java.lang.String, java.lang.Class) to extract attribute values.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
PojoAttributeValueExtractor()
           
 
Method Summary
 java.lang.Object getValue(java.lang.Object bean, java.lang.String property)
          Get an attribute/property from a bean.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoAttributeValueExtractor

public PojoAttributeValueExtractor()
Method Detail

getValue

public java.lang.Object getValue(java.lang.Object bean,
                                 java.lang.String property)
Description copied from interface: AttributeValueExtractor
Get an attribute/property from a bean.

Specified by:
getValue in interface AttributeValueExtractor
Parameters:
bean - The object to read an attribute/property from.
property - The attribute/property to read.
Returns:
The value of the returned object or null if it could not be found.

Copyright 2008