public interface GrabService extends SciJavaService
| Modifier and Type | Method and Description |
|---|---|
void |
addResolver(Map<String,Object> args) |
Map<String,Map<String,List<String>>> |
dependencies()
Gets a table of dependencies which have previously been grabbed.
|
boolean |
getDisableChecksums()
Global flag to ignore checksums.
|
boolean |
getEnableAutoDownload()
This is a static access auto download enabler.
|
void |
grab(Map<String,Object> dependency) |
void |
grab(Map<String,Object> args,
Map... dependencies) |
void |
grab(String endorsed) |
boolean |
isGrabEnabled()
This is a static access kill-switch.
|
Map[] |
listDependencies(ClassLoader cl) |
URI[] |
resolve(Map<String,Object> args,
List depsInfo,
Map... dependencies) |
URI[] |
resolve(Map<String,Object> args,
Map... dependencies) |
void |
setDisableChecksums(boolean disableChecksums)
Sets global flag to ignore checksums.
|
void |
setEnableAutoDownload(boolean enableAutoDownload)
This toggles the auto download feature.
|
void |
setGrabEnabled(boolean grabEnabled)
This is a static access kill-switch.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeMap<String,Map<String,List<String>>> dependencies()
groupId. Each key resolves to a map keyed on
artifactIds of that groupId. Each
artifactId key resolves to a list of resolved
versions.boolean getDisableChecksums()
boolean getEnableAutoDownload()
This applies to the grab and resolve calls.
If it is set to false, only previously downloaded grapes will be used. This may cause failure in the grape call if the library has not yet been downloaded
If it is set to true, then any jars not already downloaded will automatically be downloaded. Also, any versions expressed as a range will be checked for new versions and downloaded (with dependencies) if found.
By default it is set to true.
boolean isGrabEnabled()
void grab(String endorsed)
Map[] listDependencies(ClassLoader cl)
void setDisableChecksums(boolean disableChecksums)
void setEnableAutoDownload(boolean enableAutoDownload)
This applies to the grab and resolve calls.
If it is set to false, only previously downloaded grapes will be used. This may cause failure in the grape call if the library has not yet been downloaded.
If it is set to true, then any jars not already downloaded will automatically be downloaded. Also, any versions expressed as a range will be checked for new versions and downloaded (with dependencies) if found. By default it is set to true.
void setGrabEnabled(boolean grabEnabled)
Copyright © 2015–2022 SciJava. All rights reserved.