Yes I will :) I will make sure to read it from cover to cover :) Thanks for all the comments, hopefully next time I come here it will be for helping rather...
I have been reading about primitive obsession(online),and value objects(eric's DDD).I want to understand how they are important with regard to encapsulation? ...
Hi, I have another question regarding the domain driven design. I find it a little hard to distinguish between a Façade and Service object. I know that a...
Hi everyone, Do you know of any good articles/books out there using Aspect-Oriented Programming to facilitate a domain-driven design? At first glance it seems...
Jimmy Nilsson's Applying Domain Driven Design and Patterns has some good discussion about AOP in the domain. ... -- If knowledge can create problems, it is not...
"According to the Gang of Four, the intent of the Façade pattern is to provide a unified interface to a set of interfaces in a subsystem. Façade defines a...
Hey Sim085, The Facade pattern is from Design Patterns, quoting: "Provide a unified interface to a set of interfaces in a subsystem. Facade defines a ...
At first blush, I'd say that AOP and DDD are orthogonal. You could use AOP to implement features in a domain, but I guess I can't envision how it would used...
What I'm hoping is, that AOP would help to avoid poluting the domain model with non-domain concerns such as hibernate's requirement for a version property to...
Why wouldn't you simply use resource files? You can use keys in any language to index into the resource file, and use the Strategy pattern to decide which...
You're right, in my mind the Dictionary or List approach, one of the two ideas I was examining in my original inquiry, seems a little complicated to...
Thanks to both for the replies :) A system would have three layers in my opinion; Façade, Service, and Repository (Data Access). Then there are the Persisted...
This is how I look at it: 1. Facades should be Controllers - and orchestrate calls to Services and Domain objects. Facade should look like a high level...
... You can take a look at Spring Modules XT Modeling Framework: https://springmodules.dev.java.net/docs/reference/0.5/html_single/#modeling Cheers, Sergio B. ...
Hi Sim085, I wouldn't build direct methods on factories like somethingFactory.getThisSortOfSomething(). Rather, somethingFactory.getThing("thingIdentifier") ...
Thanks Karthik, Your bank transfer example was extremely helpful :) It is a simple thought but really made me understand what I need to put in a Service...
domain objects should have state AND behavior. but not all behavior of a business domain really fits in to a domain object. that's where Service comes in. ...
For me it raises something interesting I'm trying to get my head around. Take a bank account for example. Let's say we model our BankAccount class so that it...
True, it's not the responsibility of BankAccount to transfer between two accounts. It's the responsibility of whatever entity owns the two bank accounts....
Doh! Should have proof-read before I hit 'send'. Meant to say: TransferAccount would be a service or command object, as it's name is a verb (or rather a...
Following a very similar example in Kent Beck's TDD book, we could start by introducing the domain concept of a bank. However, I think that there's still the...
If you're referring to transaction management, as in the technical terminology (as opposed to a bank transaction), then i would suggest you look at AOP and ORM...
Oh definitely, you don't want transaction management in your domain model. But that's true of any case one might bring up. You want to manage transactions in...
Here's a a concrete example of how I look at it. I hope this comes out formatted OK. A TransferService in the application (or service) layer handles...
my preference: if i really needed to do programmatic transaction demarcation, i would do it in the facade. i would try to keep the Service agnostic of...
People, I really have to interject. When you (as a private person) get a bank statement, it contains a series of lines with what the bank calls transactions....