原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
40 原书第05章|Services
y are, they are likely to be overkill when the motivation is just a logical separation of concerns.
The means of providing access to a SERVICE is not as important as the design decision to carve off specific responsibilities. A "doer" object may be satisfactory as an implementation of a SERVICE's interface. A simple SINGLETON (Gamma et al. 1995) can be written easily to provide access.
Coding conventions can make it clear that these objects are just delivery mechanisms for SERVICE in
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch05lev1sec4.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce