openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.7k forks source link

[InfluxDB Persistence] Make the ItemRegistry a static reference #5659

Closed kaikreuzer closed 6 years ago

kaikreuzer commented 6 years ago

Fixes https://github.com/openhab/openhab1-addons/issues/5658

9037568 commented 6 years ago

I don't have a clue what this does... but ok, if it fixes the problem.

ssalonen commented 6 years ago

So the static reference is the important thing? Or the cardinality change from 0..1 to 1..1?

kaikreuzer commented 6 years ago

Both in combination. It simply makes sure that the itemRegistry is injected before the service is activated.