Hi All, My Two Cents on SOA, having implemented Web Services, SOA : Design Principle WEB Services : an Implementation of the SOA Design Principle. I correlate...
Hello Greg, sorry for my late reply - I was on vacation ;) ... I like this approch. Can you give a small example how you would implement this? Thanks Matthias...
... The UnitOfWork pattern is implemented in Qi4j(.org), like so: // Create UoW UnitOfWork uow = uowFactory.newUnitOfWork(); // Get references to some Entities...
As Jason observed, logging is not meant to be used by the end user - that then is the indicator it is not to be considered part of a domain, it's just a...
... domain ... In this case the methods you invoke could still lead to invalid object states as you change the entity directly. Is there an example of Greg ...
I use a unit of work in terms of messaging. I represent all incoming operations as commands. These are optionally put into a unit of work. Since everything is...
Based on the feedback I'm getting it seems as if the general interpredation is that SOA and DDD is a nice match that can very well coexists and enricht each...
I think that requring a entity to always be in a valid state puts huge amount of unessesarly restriction for how you can work with the entity. Take the...
But the problem in your example arises because you have individual setters for these dependent properties. Instead of having setters for everything you could...
... setters ... everything you ... inconsistent ... Other than the fact that you might be using an ORM package like hibernate, or jpa, right? They require...
Correct. Moreover, if direct field access is not appropriate, Hibernate lets you declare setters for the properties as *private* methods - Hibernate can still...
... Hibernate ... Right, I do that with my setId() method. I don't want anyone else calling it (actually I make it protected for unit testing purposes)....
Hi, I am developing some combination of DDD and SOA right now. I cannot share any code, but I can share a description on how to do. I am writing code in ...
Hello, This is not so much a DDD post, but an OO design post, and more specifically, a code readability / Tell Don't Ask post. I give you advance warning in...
A method of alleviating the pain of the many parameters to the constructor is to introduce a fluent builder. The builder explicitly has the responsibility of...
Yep, with the fluent builder approach your example would become something like Pen redPen = Pen.withCapacity( 700 ml ) .ofLength( 8 inches ) .colored(...
A fluent builder indeed. Now let's suppose I let every pen be named, and the name can be changed at any time during the lifecycle. I could still use the fluent...
That will certainly work, though at its heart redPen.changer().changeNameTo("foo").changeLengthTo(20); is little better than redPen.changeNameTo("foo"); ...
Have you read Martin Fowler's work on Method Chaining? I can't find his original bliki article at the moment, but he's got most of the material in his upcoming...
Hi, I'm trying to design a larger solution with DDD patterns. I plan to put repository interfaces inside the domain, because I need my entities to access the...
In our domain driven design, we allow clients to consume a service that includes a "Save Step" method (public Step SaveStep(Step userStep). This works great...
I use Spring and its AspectJ aspects for this situation (if you're coding in Java). The aspect is bound to the Spring context, so the logic that it injects...