Announcement Announcement Module
Collapse
No announcement yet.
Handling improper Setters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handling improper Setters

    I am working with an outside library and trying to load the main class using Spring. The problem, however, is that the setters for the class return the class object back (for setter chaining), i.e.

    Code:
    Obj.setOption1("val").setOption2("val").setOption3("val")
    etc...

    Spring, however, complains about improper/inaccessible setter/getter methods. Is there any way to make spring ignore the return value of the setters and count them as valid setter methods, even though they're not defined with void return?

    Any way to work around this problem?

    Thanks

  • #2
    I found a similar thread

    http://forum.springframework.org/sho...=method+return

    That answers the question to some degree.

    Comment

    Working...
    X