• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • teck
  • Reporter:
  • October 28, 2010
  • 0
  • Watchers: 1
  • July 27, 2012
  • November 09, 2010

Description

We are making it too much work to create extractors.

Why don’t we support JavaBeans conventions so that

implies

if a getter exists on the value or the key

If it cannot be resolved due to ambiguity ie there is an age on both key and age we throw an exception.

Comments

Tim Eck 2010-10-29

This might be too contrived to consider, but one place this maybe gets sticky is if during the context of one put() the key happens to have this bean property, and in a different put() the value() has it. Maybe you get what you deserve in that scenario, but it does feel a little odd to source the attribute from different context objects automatically in this case.

Tim Eck 2010-10-29

It might worth considering in conjunction with this a mode where all bean properties present become attributes.

Tim Eck 2010-11-09

added support for javabean attribute definitions