public interface Stax2InputFactoryProvider
XMLInputFactory2
instances with OSGi framework.
The added indirection (provider constructing factory) is needed because
of impedance between OSGi service objects (which are essentially
singletons) and Stax/Stax2 factories which are not.
Note: implementations of provider should NOT use introspection
via XMLInputFactory.newInstance()
as it will
not work with OSGi. Instead, providers should directly construct
instances of concrete factory they represent. That is, there will
be one provider implementation per concrete Stax/Stax2 implementation
Modifier and Type | Field and Description |
---|---|
static String |
OSGI_SVC_PROP_IMPL_NAME
Service property that defines name of Stax2 implementation that
this provider represents.
|
static String |
OSGI_SVC_PROP_IMPL_VERSION
Service property that defines version of Stax2 implementation that
this provider represents.
|
Modifier and Type | Method and Description |
---|---|
XMLInputFactory2 |
createInputFactory()
Method called to create a new
XMLInputFactory2 instance. |
static final String OSGI_SVC_PROP_IMPL_NAME
static final String OSGI_SVC_PROP_IMPL_VERSION
XMLInputFactory2 createInputFactory()
XMLInputFactory2
instance.Copyright © 2015 fasterxml.com. All Rights Reserved.