]> gerrit.simantics Code Review - simantics/platform.git/commit
Add Collector.isEnabled and implement support in CollectorImpl
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 8 Nov 2021 11:04:24 +0000 (13:04 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 8 Nov 2021 11:04:56 +0000 (13:04 +0200)
commitad0aa149a7de3e3ce3034a59ad7761d03d697501
tree1d3082c9666651b68b53a40a05c32a3125713844
parentbf61329ab8be1aa339b0a7e0433a785efa5a6810
Add Collector.isEnabled and implement support in CollectorImpl

Also add default constructor for SubscriptionItem that uses cached
BINDING instead of retrieving it from Bindings for every instance.

CollectorImpl methods invoked by datasource adapters are now
short-circuited based on the enabledness of the collector.

gitlab #771
bundles/org.simantics.history/src/org/simantics/history/Collector.java
bundles/org.simantics.history/src/org/simantics/history/impl/CollectorImpl.java
bundles/org.simantics.history/src/org/simantics/history/util/subscription/SubscriptionItem.java