Aug 19th, 2010, 03:50 AM
How to find out all possible settable properties for a bean?
Assume I got a bean in a *.jar but no documentation.
Is there a way to find out which properties can be set in SpringXML at all?
In other words: Is there something like a Spring disassembler which lists all possible settable bean variables (including their data type) ?
Aug 19th, 2010, 03:59 AM
If you develop using Eclipse + Spring IDE or STS, you can use content assist (ctrl + space) inside Spring xml to obtain all settable properties. Just write <property name= inside the bean and hit ctrl+space and you get the list.
Otherwise, you must recur to documentation (either attach javadoc, open the class and navigate it, or refer to online documentation).
Aug 29th, 2010, 12:13 AM
IntelliJ Idea (not free as Eclipse + STS) also has that feature.
Originally Posted by pstein