By bloid
via adam-bien.com
Published: Dec 21 2007 / 17:02
The Fluent Interface Pattern is nothing else, but the revival of object oriented development. However if you mention "object orientation", you will get an answer "It's nothing new" and still see Getter/Setter programming style and anemic objects (actually structures) :-). However with Java EE 5 it is possible again to build object oriented systems internally and expose them as services to the outside world. Building good, fluent APIs requires you to understand the domain. So it is really hard to provide reasonable samples for "Fluent Interfaces".
Comments
dzonelurker replied ago:
"However with Java EE 5 it is possible again to build object oriented systems internally and expose them as services to the outside world."
Means, use Stateless Session Beans, avoid Entity Beans.
abien replied ago:
Hi Dzonelurker,
not exactly, use Session Beans and JPA-Entities. Entity Beans are actually "deprecated" :-),
thanks,
adam
Voters For This Link (10)
Voters Against This Link (1)