public class Metadata extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
The Builder class creates a new Metadata instance from a metadata.json file.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JAVA_VERSION |
| Modifier | Constructor and Description |
|---|---|
|
Metadata() |
protected |
Metadata(Map<String,Resource> resources,
Map<String,String> environment,
Map<String,RuntimeProperty> runtimeProperties)
This constructor is used by the Builder subclass to create a new Metadata instance
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getEnvironment() |
String |
getEnvironmentVariable(String variableName) |
Path |
getJavaExecutable() |
Path |
getJavaHome() |
<R extends Resource> |
getResource(String resourceName) |
Map<String,Resource> |
getResources() |
<R extends Resource> |
getResources(Class<R> type) |
String |
getRuntimeParameter(String parent,
String propertyName) |
String |
getRuntimeParameter(String parent,
String propertyName,
String defaultValue) |
Map<String,String> |
getRuntimeProperty(String section) |
void |
setRuntimeParameter(String parameter,
String value) |
void |
setRuntimeParameter(String section,
String property,
String value) |
public static final String DEFAULT_JAVA_VERSION
protected Metadata(Map<String,Resource> resources, Map<String,String> environment, Map<String,RuntimeProperty> runtimeProperties)
resources - A map of the GenApp resourcesenvironment - A map of the environment variablesruntimeProperties - A map of RuntimePropertiespublic Metadata()
@Nonnull public <R extends Resource> Collection<R> getResources(Class<R> type)
@Nullable public Map<String,String> getRuntimeProperty(String section)
NullPointerException - if parent property does not existpublic String getRuntimeParameter(String parent, String propertyName, String defaultValue)
Copyright © 2013. All Rights Reserved.