Package org.kurento.commons
Class PropertiesManager
- java.lang.Object
-
- org.kurento.commons.PropertiesManager
-
public class PropertiesManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePropertiesManager.PropertyHolder
-
Constructor Summary
Constructors Constructor Description PropertiesManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetProperty(String property)static booleangetProperty(String property, boolean defaultValue)static doublegetProperty(String property, double defaultValue)static intgetProperty(String property, int defaultValue)static longgetProperty(String property, long defaultValue)static <E extends Enum<E>>
EgetProperty(String property, E defaultValue)static StringgetProperty(String property, String defaultValue)static Map<String,Object>getProperty(String property, Map<String,Object> defaultMap)static AddressgetProperty(String property, Address defaultValue)static PropertiesManager.PropertyHoldergetPropertyHolder()static <T extends com.google.gson.JsonElement>
TgetPropertyJson(String property, String defaultValue, Class<T> clazz)static <T> TgetPropertyJson(String property, String defaultValue, Type classOfT)static StringgetPropertyOrException(String property, String exceptionMessage)static voidsetPropertyHolder(PropertiesManager.PropertyHolder propertyHolder)
-
-
-
Method Detail
-
setPropertyHolder
public static void setPropertyHolder(PropertiesManager.PropertyHolder propertyHolder)
-
getPropertyHolder
public static PropertiesManager.PropertyHolder getPropertyHolder()
-
getPropertyOrException
public static String getPropertyOrException(String property, String exceptionMessage)
-
getProperty
public static int getProperty(String property, int defaultValue)
-
getProperty
public static double getProperty(String property, double defaultValue)
-
getProperty
public static long getProperty(String property, long defaultValue)
-
getProperty
public static boolean getProperty(String property, boolean defaultValue)
-
getPropertyJson
public static <T extends com.google.gson.JsonElement> T getPropertyJson(String property, String defaultValue, Class<T> clazz)
-
getPropertyJson
public static <T> T getPropertyJson(String property, String defaultValue, Type classOfT)
-
-