Class FormatActivator

java.lang.Object
org.eclipse.jgit.archive.FormatActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class FormatActivator extends Object implements org.osgi.framework.BundleActivator
This activator registers all format types from the org.eclipse.jgit.archive package for use via the ArchiveCommand API. This registration happens automatically behind the scenes when the package is loaded as an OSGi bundle (and the corresponding deregistration happens when the bundle is unloaded, to avoid leaks).
  • Constructor Details

    • FormatActivator

      public FormatActivator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context)
      Registers all included archive formats by calling ArchiveFormats.registerAll(). This method is called by the OSGi framework when the bundle is started.
      Specified by:
      start in interface org.osgi.framework.BundleActivator
    • stop

      public void stop(org.osgi.framework.BundleContext context)
      Specified by:
      stop in interface org.osgi.framework.BundleActivator