Package org.eclipse.jgit.archive
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 Summary
Constructors Constructor Description FormatActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(org.osgi.framework.BundleContext context)
Registers all included archive formats by callingArchiveFormats.registerAll()
.void
stop(org.osgi.framework.BundleContext context)
Cleans up afterstart(BundleContext)
by callingArchiveFormats.unregisterAll()
.
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context)
Registers all included archive formats by callingArchiveFormats.registerAll()
. This method is called by the OSGi framework when the bundle is started.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext context)
Cleans up afterstart(BundleContext)
by callingArchiveFormats.unregisterAll()
.- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
-
-