Class FormatActivator

  • All Implemented Interfaces:

    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 Detail

      • FormatActivator

        public FormatActivator()
    • Method Detail

      • 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