I don't think it is a real 'problem', but my for my feeling it seems wrong.
Isn't this 'more clean':
taskService.newTask()
.withName("TestTask")
.withDueDate(someDay)
.withActor("Joram");
This way you can have the fluent interface (which I agree is nice to have) and the
setters. Downside is that that withXXX() methods are almost the same as the setters.
Ofc, this is just my opinion, perhaps I'm completely wrong on this one.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195061#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...