h2/src/main/org/h2/util/DbDriverActivator.java
/**
     * Start the bundle. This will load the database driver and register the
     * DataSourceFactory service.
     *
     * @param bundleContext the bundle context
     */
Start the bundle. This will load the database driver and register the
DataSourceFactory service.

@param bundleContext the bundle context
Start the bundle . This will load the database driver and register the DataSourceFactory service . @param bundleContext the bundle context
@Override
    public void start(BundleContext bundleContext) {
        org.h2.Driver driver = org.h2.Driver.load();
        Properties properties = new Properties();
        properties.put(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, org.h2.Driver.class.getName());
        properties.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, "H2 JDBC Driver");
        properties.put(DataSourceFactory.OSGI_JDBC_DRIVER_VERSION, Constants.getFullVersion());
        bundleContext.registerService(DataSourceFactory.class.getName(), new OsgiDataSourceFactory(driver), properties);
    }
@ Override public void start ( BundleContext bundleContext ) { org . h2 . Driver driver = org . h2 . Driver . load ( ) ; Properties properties = new Properties ( ) ; properties . put ( DataSourceFactory . OSGI_JDBC_DRIVER_CLASS , org . h2 . Driver . class . getName ( ) ) ; properties . put ( DataSourceFactory . OSGI_JDBC_DRIVER_NAME , "H2 JDBC Driver" ) ; properties . put ( DataSourceFactory . OSGI_JDBC_DRIVER_VERSION , Constants . getFullVersion ( ) ) ; bundleContext . registerService ( DataSourceFactory . class . getName ( ) , new OsgiDataSourceFactory ( driver ) , properties ) ; }
Start the bundle.
Start the bundle .