JSR223: make clear two different implementations of RuleRegistry are injected#2360
JSR223: make clear two different implementations of RuleRegistry are injected#2360dilyanpalauzov wants to merge 1 commit into
Conversation
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Looking at the class comments, I think only the |
I still do not understand why two different implementations are exposed and when should which implementation be used. In any case, the propose here change is correct. |
|
But instead of changing the docs to „one implementation“ and „another implementation“ I think this is a good chance to think about the reasons for the two different implementations and if we want to change that. |
|
For the moment this changeset is an improvement. I also would like to have more reasonable text, but at https://community.openhab.org/t/why-does-jsr223-provide-two-implementations-of-the-ruleregistry-interface/158131 no rationale was provided. |
For some reason JSR223 injects two different implementations of the org.openhab.core.automation interface.
This is confirmed by the Groovy code below:
which prints
I asked for the rationale on this at https://community.openhab.org/t/why-does-jsr223-provide-two-implementations-of-the-ruleregistry-interface/.