public final class EnvContext<T> extends Object
Constructor and Description |
---|
EnvContext(String key,
Class<T> type) |
EnvContext(String key,
Class<T> type,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue() |
String |
getKey() |
Class<T> |
getType() |
static EnvContext<Boolean> |
newBoolean(String key,
Boolean defaultValue) |
static <T> EnvContext<T> |
newCtx(String key,
Class<T> type,
T defaultValue) |
static EnvContext<File> |
newFile(String key,
File defaultValue) |
static EnvContext<Integer> |
newInteger(String key,
Integer defaultValue) |
static EnvContext<String> |
newString(String key,
String defaultValue) |
public EnvContext(String key, Class<T> type)
public EnvContext(String key, Class<T> type, T defaultValue)
public T getDefaultValue()
public static <T> EnvContext<T> newCtx(String key, Class<T> type, T defaultValue)
public static EnvContext<String> newString(String key, String defaultValue)
public static EnvContext<Boolean> newBoolean(String key, Boolean defaultValue)
public static EnvContext<Integer> newInteger(String key, Integer defaultValue)
public static EnvContext<File> newFile(String key, File defaultValue)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.