Package org.restlet.ext.jackson.internal
Class XmlFactoryProvider
java.lang.Object
org.restlet.ext.jackson.internal.XmlFactoryProvider
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 Summary
FieldsModifier and TypeFieldDescriptionstatic org.codehaus.stax2.osgi.Stax2InputFactoryProviderAllow to explicitly set the Stax2InputFactory instance in OSGI context.static org.codehaus.stax2.osgi.Stax2OutputFactoryProviderAllow to explicitly set the Stax2OutputFactoryProvider instance in OSGI context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLInputFactoryReturns an instance ofXMLInputFactoryaccording to the classpath.static XMLOutputFactoryReturns an instance ofXMLInputFactoryaccording to the classpath.
-
Field Details
-
inputFactoryProvider
public static org.codehaus.stax2.osgi.Stax2InputFactoryProvider inputFactoryProviderAllow 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 outputFactoryProviderAllow 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
-
newInputFactory
Returns an instance ofXMLInputFactoryaccording to the classpath. -
newOutputFactory
Returns an instance ofXMLInputFactoryaccording to the classpath.
-