Package com.ctc.wstx.osgi
Class WstxBundleActivator
- java.lang.Object
-
- com.ctc.wstx.osgi.WstxBundleActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class WstxBundleActivator extends java.lang.Object implements org.osgi.framework.BundleActivatorThis 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 Constructor Description WstxBundleActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Dictionary<java.lang.String,java.lang.Object>convertPropsToDict(java.util.Properties props)A Properties object is a Dictionaryvoidstart(org.osgi.framework.BundleContext ctxt)Method called on activation.voidstop(org.osgi.framework.BundleContext ctxt)
-
-
-
Method Detail
-
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:
startin interfaceorg.osgi.framework.BundleActivator
-
convertPropsToDict
private java.util.Dictionary<java.lang.String,java.lang.Object> convertPropsToDict(java.util.Properties props)
A Properties object is a Dictionary
-
stop
public void stop(org.osgi.framework.BundleContext ctxt)
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator
-
-