From 4793e1e38c916a92ae0d24b4a785478f24907e4e Mon Sep 17 00:00:00 2001 From: "Jan N. Klug" Date: Tue, 2 Jan 2024 12:42:39 +0100 Subject: [PATCH] improvement --- developers/bindings/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/developers/bindings/index.md b/developers/bindings/index.md index 557493dc78..003b1f21fb 100644 --- a/developers/bindings/index.md +++ b/developers/bindings/index.md @@ -596,7 +596,7 @@ public class MyThingHandler extends BaseThingHandler { ... @Override public Collection> getServices() { - return Collections.singleton(MQTTActions.class); + return List.of(MQTTActions.class); } } ``` @@ -981,7 +981,6 @@ Binding additional services to a handler can be achieved by implementing the ser It should extend the `AbstractThingHandlerDiscoveryService` (which implements `ThingHandlerService`and `DiscoveryService`) just like a normal service. Since a new service is created for each thing, it has to be a `PROTOTYPE` component: - ```java @Component(scope = ServiceScope.PROTOTYPE, service = YourBindingDiscoveryService.class) public class extends AbstractThingHandlerDiscoveryService {