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.
etc...Code:Obj.setOption1("val").setOption2("val").setOption3("val")
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


Reply With Quote