Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于蓝图包如何使用 OSGI 容器执行依赖注入,我感到有些困惑和好奇。
我知道普通的旧 OSGI 包含一个服务注册表和包标题/接口,以允许将对象作为服务公开给其他包。蓝图仅仅是这种行为的延伸吗?即蓝图扩展包是否执行底层 OSGI 调用以注册/获取在包的蓝图 xml 中声明的任何服务?
是的,Blueprint 将使用“正常”的 OSGi 服务注册管理(除其他外)其组件的服务注册。它可以与使用其他框架(例如 DS 或手动代码)注册的服务进行互操作。