深いモジュールパススルーメソッド

「Figure 7.1: Pass-through methods. In (a), class C1 contains three pass-through methods, which do nothing but invoke methods with the same signature in C2 (each symbol represents a particular method signature). The pass-through methods can be eliminated by having C1’ s callers invoke C2 directly as in (b), by redistributing functionality between C1 and C2 to avoid calls between the classes as in (c), or by combining the classes as in (d).」

—『A Philosophy of Software Design, 2nd Edition』John K. Ousterhout著
https://a.co/0oy6bVA

 

こういう説明を見るとサービス層でパススルーしているメソッドはdomainにあるinterfaceを継承したinterfaceでいいんじゃないかと想像する

 

そういうのが実際にあるかはここでは取り扱わない