Package org.openhab.core.config.core.xml
Class ConfigXmlConfigDescriptionProvider
java.lang.Object
org.openhab.core.config.core.xml.AbstractXmlBasedProvider<URI,ConfigDescription>
org.openhab.core.config.core.xml.AbstractXmlConfigDescriptionProvider
org.openhab.core.config.core.xml.ConfigXmlConfigDescriptionProvider
- All Implemented Interfaces:
ConfigDescriptionProvider
,XmlDocumentProviderFactory<List<ConfigDescription>>
@NonNullByDefault
public class ConfigXmlConfigDescriptionProvider
extends AbstractXmlConfigDescriptionProvider
implements XmlDocumentProviderFactory<List<ConfigDescription>>
Provides
ConfigDescription
s for configurations which are read from XML files.- Author:
- Simon Kaufmann - Initial contribution
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConfigXmlConfigDescriptionProvider
(ConfigI18nLocalizationService configI18nService, ReadyService readyService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(org.osgi.service.component.ComponentContext componentContext) createDocumentProvider
(org.osgi.framework.Bundle bundle) Creates an XML document provider for the specified module which is used to process any result objects from the XML conversion.void
protected ConfigI18nLocalizationService
Methods inherited from class org.openhab.core.config.core.xml.AbstractXmlConfigDescriptionProvider
getConfigDescription, getConfigDescriptions, localize
-
Field Details
-
READY_MARKER
- See Also:
-
-
Constructor Details
-
ConfigXmlConfigDescriptionProvider
public ConfigXmlConfigDescriptionProvider(ConfigI18nLocalizationService configI18nService, ReadyService readyService)
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext componentContext) -
deactivate
public void deactivate() -
getConfigI18nLocalizerService
- Specified by:
getConfigI18nLocalizerService
in classAbstractXmlConfigDescriptionProvider
-
createDocumentProvider
public XmlDocumentProvider<List<ConfigDescription>> createDocumentProvider(org.osgi.framework.Bundle bundle) Description copied from interface:XmlDocumentProviderFactory
Creates an XML document provider for the specified module which is used to process any result objects from the XML conversion.- Specified by:
createDocumentProvider
in interfaceXmlDocumentProviderFactory<List<ConfigDescription>>
- Parameters:
bundle
- the module for which the provider must be created (must not be null)- Returns:
- the created provider for the specified module (must not be null)
-