/** * Copyright (c) 2014-2017 by the respective copyright holders. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.eclipse.smarthome.core.thing.xml.internal; import org.eclipse.smarthome.config.core.ConfigDescription; import org.eclipse.smarthome.config.core.ConfigDescriptionProvider; import org.eclipse.smarthome.config.core.i18n.ConfigI18nLocalizationService; import org.eclipse.smarthome.config.xml.AbstractXmlConfigDescriptionProvider; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; /** * Provides {@link ConfigDescription}s for things which are read from XML files. * * @author Simon Kaufmann - initial contribution and API * */ @Component(service = ConfigDescriptionProvider.class, immediate = true, property = { "esh.scope=core.xml.thing" }) public class ThingXmlConfigDescriptionProvider extends AbstractXmlConfigDescriptionProvider { private ConfigI18nLocalizationService configI18nLocalizerService; @Reference public void setConfigI18nLocalizerService(ConfigI18nLocalizationService configI18nLocalizerService) { this.configI18nLocalizerService = configI18nLocalizerService; } public void unsetConfigI18nLocalizerService(ConfigI18nLocalizationService configI18nLocalizerService) { this.configI18nLocalizerService = null; } @Override protected ConfigI18nLocalizationService getConfigI18nLocalizerService() { return configI18nLocalizerService; } }