public class ConfigUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENVIRONMENT |
static String |
KUALI_HOME_DEFAULT_VALUE |
static String |
KUALI_HOME_ENVIRONMENT_VAR |
static String |
KUALI_HOME_SYSTEM_PROPERTY |
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationHome(String group,
String application) |
String |
getGroupHome(String group) |
String |
getKualiHome()
Return the configured value for the
kuali.home system property, the KUALI_HOME environment variable, or a default value for "kuali.home" based on
"user.home". |
String |
getValue(String systemProperty,
String environmentVariable,
String defaultValue)
Locate a value by examining system properties and environment variables.
|
public static final String KUALI_HOME_SYSTEM_PROPERTY
public static final String KUALI_HOME_ENVIRONMENT_VAR
public static final String ENVIRONMENT
public static final String KUALI_HOME_DEFAULT_VALUE
public ConfigUtil()
public String getKualiHome()
kuali.home
system property, the KUALI_HOME
environment variable, or a default value for "kuali.home" based on
"user.home".
When this method finishes the system property kuali.home
is guaranteed to be set to the same value returned by this method.public String getGroupHome(String group)
public String getApplicationHome(String group, String application)
public String getValue(String systemProperty, String environmentVariable, String defaultValue)
systemProperty
- environmentVariable
- defaultValue
- Copyright © 2004–2015 The Kuali Foundation. All rights reserved.