public enum BuildToolsServiceLoader extends java.lang.Enum<BuildToolsServiceLoader>
ServiceLoader helpers for tools located in the SDK's build-tools folders.
This utility will cache ServiceLoader instances per build-tools version and per target
service type.| Modifier and Type | Class and Description |
|---|---|
static class |
BuildToolsServiceLoader.BuildToolServiceLoader
build-tools version specific
ServiceLoader helper. |
static class |
BuildToolsServiceLoader.Service<T>
Abstract notion of what a service is.
|
| Enum Constant and Description |
|---|
INSTANCE
Singleton instance to request
ServiceLoader instances from. |
| Modifier and Type | Field and Description |
|---|---|
static BuildToolsServiceLoader.Service<com.android.jack.api.JackProvider> |
JACK
Jack service description.
|
static BuildToolsServiceLoader.Service<com.android.jill.api.JillProvider> |
JILL
Jill service description.
|
| Modifier and Type | Method and Description |
|---|---|
BuildToolsServiceLoader.BuildToolServiceLoader |
forVersion(com.android.sdklib.BuildToolInfo buildToolInfo)
Load a built-tools version specific
ServiceLoader helper. |
static BuildToolsServiceLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuildToolsServiceLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuildToolsServiceLoader INSTANCE
ServiceLoader instances from.public static final BuildToolsServiceLoader.Service<com.android.jack.api.JackProvider> JACK
public static final BuildToolsServiceLoader.Service<com.android.jill.api.JillProvider> JILL
public static BuildToolsServiceLoader[] values()
for (BuildToolsServiceLoader c : BuildToolsServiceLoader.values()) System.out.println(c);
public static BuildToolsServiceLoader valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NonNull public BuildToolsServiceLoader.BuildToolServiceLoader forVersion(com.android.sdklib.BuildToolInfo buildToolInfo)
ServiceLoader helper.buildToolInfo - the requested build-tools informationBuildToolsServiceLoader.BuildToolServiceLoader to get
instances of ServiceLoader from.