Class XmlFactoryProvider

java.lang.Object
org.restlet.ext.jackson.internal.XmlFactoryProvider

public class XmlFactoryProvider extends Object
Provides XMLInputFactory and XMLOutputFactory in an OSGI context. In a no-OSGI context, the factories are retrieved with java service loader.
Author:
Manuel Boillod
  • Field Details

    • inputFactoryProvider

      public static org.codehaus.stax2.osgi.Stax2InputFactoryProvider inputFactoryProvider
      Allow to explicitly set the Stax2InputFactory instance in OSGI context. In a no-OSGI context, the factory is retrieved with java service loader.

      Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.

      See Also:
      • org.restlet.ext.jackson.internal.Activator
    • outputFactoryProvider

      public static org.codehaus.stax2.osgi.Stax2OutputFactoryProvider outputFactoryProvider
      Allow to explicitly set the Stax2OutputFactoryProvider instance in OSGI context. In a no-OSGI context, the factory is retrieved with java service loader.

      Note: Stax2 implementation is provided by woodstox library which is a dependency of Jackson.

      See Also:
      • org.restlet.ext.jackson.internal.Activator
  • Constructor Details

    • XmlFactoryProvider

      public XmlFactoryProvider()
  • Method Details