Interface XmlDocumentProviderFactory<T>

Type Parameters:
T - the result type of the conversion
All Known Implementing Classes:
ConfigXmlConfigDescriptionProvider

@NonNullByDefault public interface XmlDocumentProviderFactory<@NonNull T>
The XmlDocumentProviderFactory is responsible to create XmlDocumentProvider instances for any certain module. The factory is not responsible to clean-up any created providers.

The XmlDocumentProviderFactory is used by the XmlDocumentBundleTracker to create for each module an own XmlDocumentProvider instance to process any result objects from the XML conversion.

Author:
Michael Grammling - Initial contribution
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • createDocumentProvider

      XmlDocumentProvider<T> 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.
      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)