Package com.ctc.wstx.osgi
Class WstxBundleActivator
java.lang.Object
com.ctc.wstx.osgi.WstxBundleActivator
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
This class is responsible for registering OSGi service(s) that Woodstox
package provides. Currently it means registering all providers that are
needed to instantiate input, output and validation schema factories;
these are needed since JDK service-introspection (which is the standard
Stax instance instantiation mechanism) does not work with OSGi.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Dictionary
<String, Object> convertPropsToDict
(Properties props) A Properties object is a Dictionaryinvalid input: '<'Object,Object> but the OSGi API got more restrictive and requires a Dictionaryinvalid input: '<'String,Object>, so we must do a quick conversion here.void
start
(org.osgi.framework.BundleContext ctxt) Method called on activation.void
stop
(org.osgi.framework.BundleContext ctxt)
-
Constructor Details
-
WstxBundleActivator
public WstxBundleActivator()
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext ctxt) Method called on activation. We need to register all providers we have at this point.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
-
convertPropsToDict
A Properties object is a Dictionaryinvalid input: '<'Object,Object> but the OSGi API got more restrictive and requires a Dictionaryinvalid input: '<'String,Object>, so we must do a quick conversion here. -
stop
public void stop(org.osgi.framework.BundleContext ctxt) - Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
-