Transient Bundles

SAT allows a bundle to be transient, meaning that it will be automatically uninstalled once it has executed its activate() method. While transient bundles are rare, they can be invaluable when a bundle needs to be installed to perform behavior that must only be run once.

A transient bundle is defined by simply overriding the method isTransient() to return true, for example:

  protected boolean isTransient() {
    return true;
  }