commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Bradley <lu...@somnia.com>
Subject [beanutils] BeanUtils.describe() and Lists of Complex Types
Date Fri, 07 Jan 2005 22:01:28 GMT
Forgive my ignorance, but I am attempting to use BeanUtils.describe() on 
a custom object that contains a List of other complex objects.  My 
getList() method is being described, but is only returning the 
toString() value of my object.

For example, a list with two BeanSerializerData2Test objects produces 
the following.

dataList=[p2p.io.BeanSerializerData2Test@b988a6, 
p2p.io.BeanSerializerData2Test@ba6c83]

I would like for the objects within the list to be recursively described 
as well, but can't seem to find a way for this to happen.

I thought writing and registering a custom Conversion class would work, 
but that appears for objects being decoded, not encoded.

Is it possible to utilize the BeanUtils code to do what I want?  Or are 
primitive/String lists the only options for now?

Thanks for any help.

Lukas


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message