Can Specifications reside in the App Layer? Can a Build To Order Spec Produce a Domain Object?
Subject: Can Specifications reside in the App Layer? Can a Build To Order Spec Produce a Domain Object?
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-18 05:16:05 GMT
Hi All,
1) Can Specifications (external) reside in the App Layer?
Eg. My Application (Loans) in the app layer needs to call many validations which reside in the other domains. We call these services exposed by other domains (like security) etc via Adapters, but the loans Application object looks ugly since the various method calls are encompassed in it.
Is it advisable to create a separate External Specification Object and in turn that object talk to the various adapters which in turn talk to the External Services.
2) Can a Build To Order Spec Produce an Domain Object?
Currently we pass a build to order spec to a factory to produce a Domain Object, Can the Build To Order Spec itself Produce a Domain Object, thus avoiding the use of a factory?
Thanks & Regards
Ashley
Ashley Fernandes
Consultant | Banking Products Division | Goregaon Annex, Mumbai
Direct: +91 22 6718 7421| Mobile: +91 9820842428
i-flex solutions has proposed to change its name to Oracle Financial Services
(read more about the proposed name change at www.iflexsolutions.com)
DISCLAIMER:
This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.
__._,_.___
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
RSS Feed