Top Description Fields Constructors Methods
org.xerial.snappy

public Class SnappyBundleActivator

extends Object
implements BundleActivator
Class Inheritance
All Implemented Interfaces
org.osgi.framework.BundleActivator
Imports
org.osgi.framework.Bundle, .BundleActivator, .BundleContext, java.util.jar.Manifest

OSGi bundle entry point
Author
leo

Field Summary

Modifier and TypeField and Description
public static final String
LIBRARY_NAME

Name of the Snappy native library

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.
context
)

Implements org.osgi.framework.BundleActivator.start.

Make a call to System#loadLibrary(String) to load the native library which assumes that the library is available on the path based on this Bundle's Manifest.

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

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

Field Detail

LIBRARY_NAMEback to summary
public static final String LIBRARY_NAME

Name of the Snappy native library

Constructor Detail

SnappyBundleActivatorback to summary
public SnappyBundleActivator()

Method Detail

startback to summary
public void start(BundleContext context) throws Exception

Implements org.osgi.framework.BundleActivator.start.

Make a call to System#loadLibrary(String) to load the native library which assumes that the library is available on the path based on this Bundle's Manifest.

Parameters
context:BundleContext

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

The execution context of the bundle being started.

Exceptions
Exception:

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

If this method throws an exception, this bundle is marked as stopped and the Framework will remove this bundle's listeners, unregister all services registered by this bundle, and release all services used by this bundle.

stopback to summary
public void stop(BundleContext context) throws Exception

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
context:BundleContext

The execution context of the bundle being stopped.

Exceptions
Exception:
If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.