org.h2.util
Class DbDriverActivator

java.lang.Object
  extended by org.h2.util.DbDriverActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class DbDriverActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

The driver activator loads the H2 driver when starting the bundle. The driver is unloaded when stopping the bundle.


Constructor Summary
DbDriverActivator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext bundleContext)
          Start the bundle.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stop the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbDriverActivator

public DbDriverActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
Start the bundle. This will load and register the database driver.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the bundle context

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
Stop the bundle. This will deregister the database driver.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the bundle context