public class ConfigUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
convertPropertyNameToEnvironmentParam(String propertyName) |
protected static String |
convertPropertyNameToJNDIPath(String propertyName)
Takes a property name and splits it via / instead of .
|
static String |
locateProperty(String propertyName,
String defaultValue)
Finds the property based on looking up the value in one of three places (in order of preference):
JNDI: via java:comp/env/{propertyName/converted/to/slash}
A Java system property or a Java system property prefixed with solr.
OS environment variable
|
public static String locateProperty(String propertyName, String defaultValue)
protected static String convertPropertyNameToJNDIPath(String propertyName)
propertyName - Copyright © 2005–2020 Alfresco Software. All rights reserved.