How to make Spring accept non-void setters?
- by Chris
Hi,
I have an API which I am turning into an internal DSL. As such, most methods in my PoJos return a reference to this so that I can chain methods together declaratively as such (syntactic sugar).
myComponent
.setID("MyId")
.setProperty("One","1")
.setProperty("Two","2")
.setAssociation(anotherComponent)
.execute();
My API…