Package org.eclipse.jgit.archive
Class FormatActivator
java.lang.Object
org.eclipse.jgit.archive.FormatActivator
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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()
.
-
Constructor Details
-
FormatActivator
public FormatActivator()
-
-
Method Details
-
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
-