You should note that PropertyUtils.describe() simply delegates to the
standard JavaBeans introspection functionality to determine what the
properties of the bean class are ... and, based on the property method
naming rules, every Java class does indeed have a readonly property
named "class" due to the existence of the getClass() method that is
inherited from  java.lang.Object.

You should also note that you can dictate what the available
properties are, and even use getter and setter method names that do
not conform to the standard design patterns, if you supply a
FooBeanInfo class to go along with your Foo class -- see the JavaBeans
spec for more information.  But that's more work than makes sense in
this particular use case.

Since I have a BaseValueObject(parent of all value objects) which provides toString, equals, hashCode to all the value objects, I could probably attach a BeanInfo class to this class which "hides" the class property
so I will get rid of it in all my value objects.
But since I need the PropertyUtils.describe() only in the BaseValueObject methods I simply removed the
class property from the Map.

Anyways, thanks for everyone for the answers.
This was so OT I didn't hope to get any answers ;-)


Tamas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to