Generalize Fluent Methods
Currently, setters, e.g. void setFoo(Object v), can be called as builder properties, as if the method ThisObject foo(Object v) were defined, thus allowing a fluent chaining of setter methods (behavior defined here).
I think it could be useful to extends this behavior to any method returning void.
With a fallback behavior this feature could be explicit.
We could define a Fluent behavior with an augmentationon on the java.lang.Object. The user would be responsible to import the feature if he wants to use it. If the user defines its own fluent method it will use instead of the fallback behavior.
Thougts?
@danielpetisme What I propose is just to wrap methods returning void to return the object itself. Fallback is of no use here, since the method exists, and thus doesn't trigger the behavior.