Package org.xerial.snappy
Class SnappyBundleActivator
- java.lang.Object
-
- org.xerial.snappy.SnappyBundleActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class SnappyBundleActivator extends java.lang.Object implements org.osgi.framework.BundleActivator
OSGi bundle entry point
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LIBRARY_NAME
Name of the Snappy native library
-
Constructor Summary
Constructors Constructor Description SnappyBundleActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(org.osgi.framework.BundleContext context)
Make a call toSystem.loadLibrary(String)
to load the native library which assumes that the library is available on the path based on thisBundle
'sManifest
.void
stop(org.osgi.framework.BundleContext context)
-
-
-
Field Detail
-
LIBRARY_NAME
public static final java.lang.String LIBRARY_NAME
Name of the Snappy native library- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
Make a call toSystem.loadLibrary(String)
to load the native library which assumes that the library is available on the path based on thisBundle
'sManifest
.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
-
-