我们如何在部署图中显示第三方 API。要指定的是 facebook sdk 和 twitter 4j 独立的 Web 服务,它们正在为我的应用程序提供娱乐?
问问题
819 次
1 回答
0
I would specify the API itself using components with interfaces. Interfaces have methods, that specify preciselly the API (RESTfull methods or whatever).
The components can be always assigned to nodes on a Deployment diagram, so you can do it if you need. The first idea is to have 2 nodes (one for FB/Twitter, another to host your system component), connected through a link stereotyped Internet.
Dependency flows from your system component, to corresponding interface(s).
于 2014-05-11T18:36:56.870 回答