]> gerrit.simantics Code Review - simantics/platform.git/commit
Made DB ListenerAdapter abstract to force isDisposed implementation 51/1151/4
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 27 Oct 2017 22:14:27 +0000 (01:14 +0300)
committerJani Simomaa <jani.simomaa@semantum.fi>
Mon, 30 Oct 2017 05:28:03 +0000 (07:28 +0200)
commit7a7ad0a2319ce70a184e099adad8a69c23562bd9
tree792ae5f5980888f0f1afc4de87b32a5151ec665c
parent7dd9579f2b8e3eabdad63c8cce46d5c7ff2e42fd
Made DB ListenerAdapter abstract to force isDisposed implementation

This forces the user of the adapter to still handle the life-cycle of
the listener, which should never be neglected.

refs #7581

Change-Id: I1a54b3f130dfe5f82fcdf01eb799ac96b31e7636
12 files changed:
bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/adapter/AsyncListenerAdapter.java
bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/adapter/ListenerAdapter.java
bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/adapter/SyncListenerAdapter.java
bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphLoaderUtils.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/request/exception/RecoveryFromExceptedState.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/request/listening/ObjectsListeningTest.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/request/misc/RequestProcessorTest1.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/request/thread/ThreadingTest1.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/request/thread/ThreadingTest2.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/support/clusterControl/CachedDirectPredicatesWithNoCluster.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/api/support/clusterControl/ObjectsWithNoClusterWithCachedRelationInfo.java
tests/org.simantics.db.tests/src/org/simantics/db/tests/performance/read/ReadHierarchicalNames.java