【发布时间】:2018-04-19 06:54:03
【问题描述】:
我通过 OSGi 中的 @Component 属性获得了我通过文档无法理解的属性,并且没有获得任何详细信息,即启用。
我从Felix documentation about scr annotation 得到的是:
启用
enabled
Default: true
SCR Descriptor: component.enabled
Metatype Descriptor: --
bundle 启动时是否启用组件
立即
immediate
Default: --
SCR Descriptor: component.immediate
Metatype Descriptor: --
组件是否立即激活
虽然我知道“激活组件”,但我不明白“启用组件”一词是什么意思?
任何在用例或示例的帮助下的答案,何时使用什么,都将受到赞赏。
在此先感谢您。
【问题讨论】:
标签: components osgi aem