Closed GoogleCodeExporter closed 8 years ago
This is not a bug, but a design issue (meaning, it cannot be easily changed
;-)).
The problem is that the granularity of "changes" is on "ItemProvider" level,
not on file level. The "GenericItemProvider" is one of these providers, namely
the one that reads its information from the *.items files. If something changes
there (and the files are discovered one by one at startup and not all at once),
the GenericItemProvider informs its listeners about a change in its provided
item list - so all of them are revisited.
I agree that this behavior is not really nice, but as long as users do not
create too many items files, this should not be too costly. We could think
about a refactoring of the GenericItemProvider in future to do more finegraned
"itemAdded"/"itemRemoved" instead of "allItemsChanged" events, so I leave this
issue open for future improvements. For the time being, I do not see a high
prio to deal with it.
Original comment by kai.openhab
on 26 Dec 2012 at 9:35
Since the workaround is really easy (just use one file), a low priority seems
appropriate. I just ran into the issue and it seemed important enough to flag
so that it is documented somewhere and the next developer who is new to openHab
doesn't need to wonder so long on why his code is not working as expected ;-)
Original comment by davy.van...@gmail.com
on 26 Dec 2012 at 9:59
[deleted comment]
Original comment by teichsta
on 12 Jul 2013 at 2:05
[deleted comment]
Issue moved to https://bugs.eclipse.org/bugs/show_bug.cgi?id=423465
Original comment by kai.openhab
on 6 Dec 2013 at 5:58
Original issue reported on code.google.com by
davy.van...@gmail.com
on 24 Dec 2012 at 11:52