Class BundleInstaller
java.lang.Object
org.esa.snap.core.gpf.descriptor.dependency.BundleInstaller
- All Implemented Interfaces:
AutoCloseable
Installer class for adapter bundles.
- Since:
- 5.0.4
-
Constructor Summary
ConstructorsConstructorDescriptionBundleInstaller
(ToolAdapterOperatorDescriptor descriptor) Creates an installer for the given adapter descriptor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
install
(boolean async) Install the bundle (if any) of the current adapter operator.static boolean
isBundleFileAvailable
(Bundle bundle) Checks if a bundle file (archive or installer) is present.void
setCallback
(Callable<Void> completionCallback) Sets a callback to be invoked when the execution completes.void
setProgressMonitor
(ProgressMonitor monitor) Sets a progress monitor for this installer.
-
Constructor Details
-
BundleInstaller
Creates an installer for the given adapter descriptor.- Parameters:
descriptor
- The adapter descriptor
-
-
Method Details
-
isBundleFileAvailable
Checks if a bundle file (archive or installer) is present.- Parameters:
bundle
- The bundle to be checked
-
setProgressMonitor
Sets a progress monitor for this installer.- Parameters:
monitor
- The progress monitor
-
setCallback
Sets a callback to be invoked when the execution completes.- Parameters:
completionCallback
- The completion callback
-
install
public void install(boolean async) Install the bundle (if any) of the current adapter operator.- Parameters:
async
- Iftrue
, installation will be done on a separate thread.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-