Results 1 to 2 of 2

Thread: Handling improper Setters

  1. #1
    Join Date
    Jan 2007
    Posts
    2

    Default 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. #2
    Join Date
    Jan 2007
    Posts
    2

    Default

    I found a similar thread

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

    That answers the question to some degree.

Posting Permissions

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