From a08314ae36ae6ef5413ac2ba4e2733531a2bda89 Mon Sep 17 00:00:00 2001 From: Kevin Herron Date: Wed, 9 Sep 2020 11:49:57 -0700 Subject: [PATCH] Update Milo to version 0.5.0-M2 --- build.gradle | 2 +- .../namespaces/demo/SampledAddressSpaceFragment.kt | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index 8d2309a..4ab8a0d 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ version "0.2-SNAPSHOT" sourceCompatibility = 1.8 project.ext { - miloVersion = "0.5.0-M1" + miloVersion = "0.5.0-M2" packageName = "milo-demo-server" } diff --git a/src/main/kotlin/com/digitalpetri/opcua/server/namespaces/demo/SampledAddressSpaceFragment.kt b/src/main/kotlin/com/digitalpetri/opcua/server/namespaces/demo/SampledAddressSpaceFragment.kt index e0b03ae..cb86148 100644 --- a/src/main/kotlin/com/digitalpetri/opcua/server/namespaces/demo/SampledAddressSpaceFragment.kt +++ b/src/main/kotlin/com/digitalpetri/opcua/server/namespaces/demo/SampledAddressSpaceFragment.kt @@ -16,8 +16,8 @@ import java.util.concurrent.ConcurrentMap */ abstract class SampledAddressSpaceFragment( server: OpcUaServer, - private val composite: AddressSpaceComposite -) : ManagedAddressSpaceFragmentWithLifecycle(server) { + composite: AddressSpaceComposite +) : ManagedAddressSpaceFragmentWithLifecycle(server, composite) { private val supervisor = SupervisorJob() private val coroutineScope = CoroutineScope(supervisor + Dispatchers.Default) @@ -38,14 +38,6 @@ abstract class SampledAddressSpaceFragment( return filter } - override fun registerAddressSpace(addressSpace: AddressSpaceFragment) { - composite.register(addressSpace) - } - - override fun unregisterAddressSpace(addressSpace: AddressSpaceFragment) { - composite.unregister(addressSpace) - } - override fun onDataItemsCreated(items: List) { items.forEach { item -> val nodeId: NodeId = item.readValueId.nodeId