English 中文(简体)
秘书长特别代表与独立注射之间的关系是什么
原标题:What is the relationship between OSGi and Dependency Injection
  • 时间:2009-08-31 12:51:05
  •  标签:

两者是什么?

  • Specification and implementation?
  • Competitors?
  • Unrelated?
最佳回答
问题回答

它们在概念上具有关联性,因为它们都提供了“关切的分离”机制。

职业妇女顾问办公室在模块一级这样做——考虑有多种假想的Eclipse架构,每个结构负责具体关注/特性。

DI在目标一级是面向的,它提供了将多个物体连接起来,每个物体都对其特定功能负责的手段。

Technologically they are different. OSGI is a spec that has multiple implementations. DI used to be a design pattern with multiple implementations and APIs. There is some recent work however in JCP to try to standardize DI APIs (JSR 330)





相关问题
热门标签