]> git.basschouten.com Git - openhab-addons.git/blob
c291e5ca854968e20437ec3948a81635e764e188
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.kodi.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.binding.BaseDynamicCommandDescriptionProvider;
17 import org.openhab.core.thing.i18n.ChannelTypeI18nLocalizationService;
18 import org.openhab.core.thing.type.DynamicCommandDescriptionProvider;
19 import org.osgi.service.component.annotations.Activate;
20 import org.osgi.service.component.annotations.Component;
21 import org.osgi.service.component.annotations.Reference;
22
23 /**
24  * Dynamic provider of command options.
25  *
26  * @author Christoph Weitkamp - Initial contribution
27  */
28 @Component(service = { DynamicCommandDescriptionProvider.class, KodiDynamicCommandDescriptionProvider.class })
29 @NonNullByDefault
30 public class KodiDynamicCommandDescriptionProvider extends BaseDynamicCommandDescriptionProvider {
31     @Activate
32     public KodiDynamicCommandDescriptionProvider(
33             final @Reference ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
34         this.channelTypeI18nLocalizationService = channelTypeI18nLocalizationService;
35     }
36 }