org.directwebremoting.datasync
Interface AttributeValueExtractor

All Known Implementing Classes:
PojoAttributeValueExtractor

public interface AttributeValueExtractor

There are many ways to get a property from things, the most obvious would be reflection or introspection or using Map.get(java.lang.Object). This interface allows us to abstract the options.

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

Method Summary
 java.lang.Object getValue(java.lang.Object bean, java.lang.String property)
          Get an attribute/property from a bean.
 

Method Detail

getValue

java.lang.Object getValue(java.lang.Object bean,
                          java.lang.String property)
Get an attribute/property from a bean.

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