]> git.basschouten.com Git - openhab-addons.git/blob
a0ae2903234b5da65be6921689a8981c7a737287
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.tado.internal.handler;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.events.EventPublisher;
17 import org.openhab.core.thing.binding.BaseDynamicStateDescriptionProvider;
18 import org.openhab.core.thing.i18n.ChannelTypeI18nLocalizationService;
19 import org.openhab.core.thing.link.ItemChannelLinkRegistry;
20 import org.openhab.core.thing.type.DynamicStateDescriptionProvider;
21 import org.osgi.service.component.annotations.Activate;
22 import org.osgi.service.component.annotations.Component;
23 import org.osgi.service.component.annotations.Reference;
24
25 /**
26  * The {@link TadoStateDescriptionProvider} is responsible for providing a dynamic state description of channels whose
27  * capabilities are not hard coded in the API.
28  *
29  * @author Andrew Fiddian-Green - Initial contribution
30  *
31  */
32 @NonNullByDefault
33 @Component(service = { DynamicStateDescriptionProvider.class, TadoStateDescriptionProvider.class })
34 public class TadoStateDescriptionProvider extends BaseDynamicStateDescriptionProvider {
35
36     @Activate
37     public TadoStateDescriptionProvider(final @Reference EventPublisher eventPublisher,
38             final @Reference ItemChannelLinkRegistry itemChannelLinkRegistry,
39             final @Reference ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
40         this.eventPublisher = eventPublisher;
41         this.itemChannelLinkRegistry = itemChannelLinkRegistry;
42         this.channelTypeI18nLocalizationService = channelTypeI18nLocalizationService;
43     }
44 }