> > Here is all you need to see: > > new TransferMoneyContext(src, snk, 1000).Doit(); >
As I'm sure you realize, this is actually just the command pattern: Some part of the application instantiates a context object, "remembers" the necessary domain objects in terms of the individual (context specific) roles. It is a design decision when/where to execute the context instance. As I see it DCI does not dictate how the split between instantiating and executing contexts is implemented. Or even if there is such a split. I dont see this as a code smell.
Flat View: This topic has 119 replies
on 120 pages
[
«
|
383940414243444546
|
»
]