commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin McPhee" <>
Subject Accessing "normal" properties on a DynaBean using PropertyUtils.
Date Mon, 31 Mar 2003 01:09:38 GMT

I had previously raise a bug report that the PropertyUtils class doesn't
recognise "normal" properties on a DynaBean (see This has been
closed without action for very valid reasons, however, I am sill after a
mechanism to access bean properties that are methods and not just object
instances (as is the current BasicDynaBean implementation).

As an example, I may wish to have a method such as public Long getUpTime()
(which has to calculate its result) and access this method from the
PropertyUtils class.

I believe that this could be done by modifying the BasicDynaBean
implementation or by creating a DynaBean implementation to allow for the
registration of a user defined getter and setter methods for individual
properties. This mechanism would not break any current DynaBean and
PropertyUtils implementations.

Gavin McPhee.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message