public class Grape
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static GrapeEngine |
instance |
Constructor and Description |
---|
Grape() |
Modifier and Type | Method and Description |
---|---|
static void |
addResolver(java.util.Map<java.lang.String,java.lang.Object> args) |
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>> |
enumerateGrapes() |
static boolean |
getEnableAutoDownload()
This is a static access auto download enabler.
|
static boolean |
getEnableGrapes()
This is a static access kill-switch.
|
static GrapeEngine |
getInstance() |
static void |
grab(java.util.Map<java.lang.String,java.lang.Object> dependency) |
static void |
grab(java.util.Map<java.lang.String,java.lang.Object> args,
java.util.Map... dependencies) |
static void |
grab(java.lang.String endorsed) |
static java.util.Map[] |
listDependencies(java.lang.ClassLoader cl) |
static java.net.URI[] |
resolve(java.util.Map<java.lang.String,java.lang.Object> args,
java.util.List depsInfo,
java.util.Map... dependencies) |
static java.net.URI[] |
resolve(java.util.Map<java.lang.String,java.lang.Object> args,
java.util.Map... dependencies) |
static void |
setEnableAutoDownload(boolean enableAutoDownload)
This is a static access auto download enabler.
|
static void |
setEnableGrapes(boolean enableGrapes)
This is a static access kill-switch.
|
protected static GrapeEngine instance
public static boolean getEnableGrapes()
public static void setEnableGrapes(boolean enableGrapes)
public static 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 false.
public static 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 false.
public static GrapeEngine getInstance()
public static void grab(java.lang.String endorsed)
public static void grab(java.util.Map<java.lang.String,java.lang.Object> dependency)
public static void grab(java.util.Map<java.lang.String,java.lang.Object> args, java.util.Map... dependencies)
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.String>>> enumerateGrapes()
public static java.net.URI[] resolve(java.util.Map<java.lang.String,java.lang.Object> args, java.util.Map... dependencies)
public static java.net.URI[] resolve(java.util.Map<java.lang.String,java.lang.Object> args, java.util.List depsInfo, java.util.Map... dependencies)
public static java.util.Map[] listDependencies(java.lang.ClassLoader cl)
public static void addResolver(java.util.Map<java.lang.String,java.lang.Object> args)