Dynamic target for declarative service in OSGI

こ雲淡風輕ζ 提交于 2019-12-02 04:38:31

Components of Declarative Services can be configured via ConfigurationAdmin. By doing that, the configuration of the component can be changed at runtime.

You can also change the configuration of myService.target via ConfigurationAdmin at runtime. If you do that, another reference will be bound to your component.

If the policy of the reference of your component is dynamic, the new reference will be bound without reactivating your component.

For more information, see the Declarative Services chapter of the OSGi Compendium specification.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!