Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
J-N-K committed Jan 2, 2024
1 parent 7e5aa44 commit 4793e1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions developers/bindings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public class MyThingHandler extends BaseThingHandler {
...
@Override
public Collection<Class<? extends ThingHandlerService>> getServices() {
return Collections.singleton(MQTTActions.class);
return List.of(MQTTActions.class);
}
}
```
Expand Down Expand Up @@ -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 <YourBindingDiscoveryService> extends AbstractThingHandlerDiscoveryService<YourBridgeHandler> {
Expand Down

0 comments on commit 4793e1e

Please sign in to comment.