Top Description Fields Constructors Methods
org.h2.util

public Class DbDriverActivator

extends Object
implements BundleActivator
Class Inheritance
All Implemented Interfaces
org.osgi.framework.BundleActivator
Imports
org.osgi.framework.BundleActivator, .BundleContext

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

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
start(BundleContext
the bundle context
bundleContext
)

Implements org.osgi.framework.BundleActivator.start.

Start the bundle.

public void
stop(BundleContext
the bundle context
bundleContext
)

Implements org.osgi.framework.BundleActivator.stop.

Stop the bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DATASOURCE_FACTORY_CLASSback to summary
private static final String DATASOURCE_FACTORY_CLASS

Constructor Detail

DbDriverActivatorback to summary
public DbDriverActivator()

Method Detail

startback to summary
public void start(BundleContext bundleContext)

Implements org.osgi.framework.BundleActivator.start.

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.

Parameters
bundleContext:BundleContext

the bundle context

Annotations
@Override
stopback to summary
public void stop(BundleContext bundleContext)

Implements org.osgi.framework.BundleActivator.stop.

Stop the bundle. This will unload the database driver. The DataSourceFactory service is implicitly un-registered by the OSGi framework.

Parameters
bundleContext:BundleContext

the bundle context

Annotations
@Override