CCISEL / PromptGarten

0 stars 0 forks source link

DM Service: why a distinct folder "Handlers"? #11

Open inesc-id-esw opened 13 years ago

inesc-id-esw commented 13 years ago

Why the services implementation, such as AddTeacher, are not in "Services" folder?

duarten commented 13 years ago

AddTeacher is a command handler, not a service. A command represents an action that can be performed on the domain, something akin to an use-case. However, a command handler may depend on application or domain services (such as the repository) to fulfill the command. Makes sense?

fmcarvalho commented 13 years ago

I agree...in part. And, I also remeber when we have discussed the existence of a services layer and now we have not one, but two more abstraction layers.