Top Description Constructors Methods
com.ctc.wstx.osgi

public Class WstxBundleActivator

extends Object
implements BundleActivator
Class Inheritance
All Implemented Interfaces
org.osgi.framework.BundleActivator
Imports
java.util.Dictionary, org.osgi.framework.BundleActivator, .BundleContext, org.codehaus.stax2.osgi.Stax2InputFactoryProvider, .Stax2OutputFactoryProvider, .Stax2ValidationSchemaFactoryProvider

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
start(BundleContext
The execution context of the bundle being started.
ctxt
)

Implements org.osgi.framework.BundleActivator.start.

Method called on activation.

public void
stop(BundleContext
The execution context of the bundle being stopped.
ctxt
)

Implements org.osgi.framework.BundleActivator.stop.

Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WstxBundleActivatorback to summary
public WstxBundleActivator()

Method Detail

startback to summary
public void start(BundleContext ctxt)

Implements org.osgi.framework.BundleActivator.start.

Method called on activation. We need to register all providers we have at this point.

Parameters
ctxt:BundleContext

Doc from org.osgi.framework.BundleActivator.start.

The execution context of the bundle being started.

Annotations
@SuppressWarnings:rawtypes
@Override
stopback to summary
public void stop(BundleContext ctxt)

Implements org.osgi.framework.BundleActivator.stop.

Doc from org.osgi.framework.BundleActivator.stop.

Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. In general, this method should undo the work that the BundleActivator.start method started. There should be no active threads that were started by this bundle when this bundle returns. A stopped bundle must not call any Framework objects.

This method must complete and return to its caller in a timely manner.

Parameters
ctxt:BundleContext

The execution context of the bundle being stopped.

Annotations
@Override