commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13743] - Need getPropertyType(Class theClass, String propName)
Date Wed, 30 Oct 2002 08:12:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13743

Need getPropertyType(Class theClass, String propName)





------- Additional Comments From aaime@libero.it  2002-10-30 08:12 -------
Maybe I was not clear, so I'll reiterate. I've set up a generic
TableModel that can handle list of beans, and I only declare what
properties I want and column names, the rest is handled by the
class thru BeanUtils. Now, let's consider an editable empty table:
I need to provide the column types even if the list is empty (to
support renderers and editors, that have to know the property type
in advance), so I cannot count on having an instance to query on: what I would
like is to query the type of a property like foo.bar.x.mySuperNestedProperty
based solely on class definition without having to play with instances.
Moreover instantiating referenced objects can be expensive, so in general
it's better to do it lazily, not at construction time... don't you agree?

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message