FEST

Add API to reflect bean properties

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: FEST-Reflect 1.2
  • Component/s: Reflect
  • Labels:
    None
  • Number of attachments :
    0

Description

The same way FEST-Reflect support reflection of class fields, it would be nice to have support for java bean properties.
We could have a Reflection.property(String name) method that works the same as Reflection.field().
The API would be the same as for field().
Only the implementation would differ (and be based on Java Beans introspection java.beans.PropertyDescriptor to reach access to this bean property).

Activity

Hide
Jean-Francois Poilpret added a comment -

Sorry for the stoked java.beans.PropertyDescriptor, I wasn't aware of that JIRA text formatting, and just wanted to put it between dashes

Show
Jean-Francois Poilpret added a comment - Sorry for the stoked java.beans.PropertyDescriptor, I wasn't aware of that JIRA text formatting, and just wanted to put it between dashes
Hide
Alex Ruiz added a comment -

Added static method 'property(String)' to class Reflection. It returns the starting point of the fluent interface for accessing properties using Bean Instrospection under the hood.

Show
Alex Ruiz added a comment - Added static method 'property(String)' to class Reflection. It returns the starting point of the fluent interface for accessing properties using Bean Instrospection under the hood.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: