How to show Dependency Injection on a UML class diagram?

前端 未结 3 758
迷失自我
迷失自我 2021-02-02 09:01

How do I show Dependency Injection of an object or class in a UML class diagram?

3条回答
  •  眼角桃花
    2021-02-02 09:35

    You display class dependencies by using a dashed line with a pointed arrow that points from the client model element to the supplier model element.

    I think that how you provide the dependencies to the client is irrelevent at the UML level.

提交回复
热议问题