Example #1
0
 public Status undo_() {
   BundleInfo bInfo = OSGiStore.getInstance().getBundleInfo(this.location);
   if (bInfo != null) {
     CommandMBean c = new UninstallCommand(this.transaction, bInfo.getId());
     return c.do_();
   }
   return new Status(
       Status.ERR,
       OSGiCommand.UNINSTALL,
       "Bundle does not exist",
       OSGiStore.getInstance().getUrl());
 }
Example #2
0
 public boolean check() {
   BundleInfo[] bundles = OSGiStore.getInstance().getBundles();
   for (int i = 0; i < bundles.length; i++) {
     if (bundles[i].getLocation().equals(this.location)) {
       this.done = true;
     }
   }
   return this.done;
 }