コード例 #1
0
  /** Bundle starting up. */
  public void start(BundleContext context) throws Exception {
    Util.getLogger().info("Starting Jdbc bundle");

    // xthis.setProperty(BundleActivatorModel.PACKAGE_NAME,
    // Util.getPackageName(JdbcDatabase.class.getName()));
    // x this.setProperty(BundleService.INTERFACE, BaseDatabase.class.getName());
    this.setProperty(BundleConstants.TYPE, DBParams.JDBC);

    super.start(context);
  }
コード例 #2
0
 /** Bundle stopping. */
 public void stop(BundleContext context) throws Exception {
   Util.getLogger().info("Stopping Jdbc bundle");
   //        Automatically unregistered.
   super.stop(context);
 }