kennychou0529 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

bindingChanged() is called twice at OpenHAB exit #462

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In my own simple binding which extends AbstractBinding I'm using 
bindingChanged()/allBindingsChanged() callbacks to be notified about changes in 
item configuration and dynamically create/destroy my backend objects. When 
OpenHAB exits bindingChanged() is called twice:

1. First call is when the item configuration is removed, I suppose by 
removeConfigurations() method of AbstractGenericBindingProvider class. This is 
expected behavior.

2. Second call is when all item configuration is parsed once again. For me this 
isn't expected behavior and I can't find a reason item configuration to be 
parsed from file once it was removed on OpenHAB exit. 

I'm using OpenHAB 1.3.0 running on Oracle JDK 1.7.0_21 under OMAP ARM processor 
(Beaglebone board).

Original issue reported on code.google.com by dpsla...@gmail.com on 17 Sep 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=423549

Original comment by kai.openhab on 8 Dec 2013 at 8:18