|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.util.PropertiesHelper
public class PropertiesHelper
Helper class containing convenience methods for reading
org.glassfish.jersey.server.ResourceConfig and Configuration properties.
| Constructor Summary | |
|---|---|
PropertiesHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
java.lang.Class<T> type)
Returns value of a specified property. |
|
static
|
getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
T defaultValue)
Returns value of a specified property. |
|
static
|
getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
T defaultValue,
java.lang.Class<T> type)
Returns value of a specified property. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesHelper()
| Method Detail |
|---|
public static <T> T getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
T defaultValue)
PropertyHelper.getValue(properties, key, defaultValue, (Class<T>) defaultValue.getClass())
T - Type of the property value.properties - Map of properties to get the property value from.key - Name of the property.defaultValue - Default value to be returned if the specified property is not set or cannot be read.
public static <T> T getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
T defaultValue,
java.lang.Class<T> type)
T - Type of the property value.properties - Map of properties to get the property value from.key - Name of the property.defaultValue - Default value of the property.type - Type to retrieve the value as.
public static <T> T getValue(java.util.Map<java.lang.String,?> properties,
java.lang.String key,
java.lang.Class<T> type)
T - Type of the property value.properties - Map of properties to get the property value from.key - Name of the property.type - Type to retrieve the value as.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||