原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
90 原书第12章|Why Not F LYWEIGHT?
ct, FLYWEIGHT is a good example of a design pattern that has no correspondence to the domain model.
When a limited set of VALUE OBJECTS is used many times (as in the example of electrical outlets in a house plan), it may make sense to implement them as FLYWEIGHTS. This is an implementation option available for VALUE OBJECTS and not for ENTITIES.
Contrast this with COMPOSITE, in which conceptual objects are composed of other conceptual objects.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch12lev1sec3.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce