Package org.h2.util
Class DbDriverActivator
java.lang.Object
org.h2.util.DbDriverActivator
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
The driver activator loads the H2 driver when starting the bundle. The driver
is unloaded when stopping the bundle.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DATASOURCE_FACTORY_CLASS
- See Also:
-
-
Constructor Details
-
DbDriverActivator
public DbDriverActivator()
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext bundleContext) Start the bundle. If the 'org.osgi.service.jdbc.DataSourceFactory' class is available in the class path, this will load the database driver and register the DataSourceFactory service.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Parameters:
bundleContext
- the bundle context
-
stop
public void stop(org.osgi.framework.BundleContext bundleContext) Stop the bundle. This will unload the database driver. The DataSourceFactory service is implicitly un-registered by the OSGi framework.- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Parameters:
bundleContext
- the bundle context
-