]> git.basschouten.com Git - openhab-addons.git/blob
9ac7a5fa1fc852036bf8306b5d121e99e71210f0
[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.androidtv.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.events.EventPublisher;
17 import org.openhab.core.thing.binding.BaseDynamicCommandDescriptionProvider;
18 import org.openhab.core.thing.i18n.ChannelTypeI18nLocalizationService;
19 import org.openhab.core.thing.link.ItemChannelLinkRegistry;
20 import org.openhab.core.thing.type.DynamicCommandDescriptionProvider;
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  * Dynamic provider of command options.
27  *
28  * @author Ben Rosenblum - Initial contribution
29  *
30  *         Originally written for ADB by Christoph Weitkamp - Initial contribution
31  */
32 @Component(service = { DynamicCommandDescriptionProvider.class, AndroidTVDynamicCommandDescriptionProvider.class })
33 @NonNullByDefault
34 public class AndroidTVDynamicCommandDescriptionProvider extends BaseDynamicCommandDescriptionProvider {
35     @Activate
36     public AndroidTVDynamicCommandDescriptionProvider(final @Reference EventPublisher eventPublisher, //
37             final @Reference ItemChannelLinkRegistry itemChannelLinkRegistry, //
38             final @Reference ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
39         this.eventPublisher = eventPublisher;
40         this.itemChannelLinkRegistry = itemChannelLinkRegistry;
41         this.channelTypeI18nLocalizationService = channelTypeI18nLocalizationService;
42     }
43 }