public class ConfigUtil extends Object implements GlobalPropertyListener
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getGlobalProperty(String propertyName)
Gets the value of the given OpenMRS global property
|
static String |
getProperty(String propertyName)
Returns the value of the given configuration property.
|
static String |
getProperty(String propertyName,
String defaultValue)
Returns the value of the given configuration property.
|
static String |
getRuntimeProperty(String propertyName)
Returns the value of the given OpenMRS runtime property
|
static String |
getSystemProperty(String propertyName)
Returns the value of the given OpenMRS system property
|
void |
globalPropertyChanged(GlobalProperty newValue)
Called after a global property is created or updated
|
void |
globalPropertyDeleted(String propertyName)
Called after a global property is deleted
|
static boolean |
hasRuntimeProperty(String propertyName)
Returns true if a runtime property with the given name has been defined, even if the value is empty
|
static boolean |
hasSystemProperty(String propertyName)
Returns true if a system property with the given name has been defined, even if the value is empty
|
boolean |
supportsPropertyName(String propertyName)
Asks this listener whether it wants to be notified about the given property name
|
public static String getGlobalProperty(String propertyName)
public static String getRuntimeProperty(String propertyName)
public static boolean hasRuntimeProperty(String propertyName)
public static String getSystemProperty(String propertyName)
public static boolean hasSystemProperty(String propertyName)
public static String getProperty(String propertyName)
public static String getProperty(String propertyName, String defaultValue)
public void globalPropertyChanged(GlobalProperty newValue)
GlobalPropertyListener
globalPropertyChanged
in interface GlobalPropertyListener
newValue
- the new value of the property that was just savedpublic void globalPropertyDeleted(String propertyName)
GlobalPropertyListener
globalPropertyDeleted
in interface GlobalPropertyListener
propertyName
- the name of the property that was just deletedpublic boolean supportsPropertyName(String propertyName)
GlobalPropertyListener
supportsPropertyName
in interface GlobalPropertyListener
Copyright © 2024 OpenMRS Inc.. All rights reserved.