Results 1 to 3 of 3

Thread: How to find out all possible settable properties for a bean?

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Posts
    7

    Default 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) ?

    Peter

  2. #2
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    709

    Default

    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).

  3. #3

    Default

    Quote Originally Posted by pstein View Post
    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) ?

    Peter
    IntelliJ Idea (not free as Eclipse + STS) also has that feature.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •