public class SystemPropertyResolver extends Object
| Constructor and Description |
|---|
SystemPropertyResolver() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanProperty(String k,
boolean dflt) |
static int |
getIntProperty(String k)
Get the property from System props, trim junk off the end, and try to convert to int.
|
static int |
getIntProperty(String k,
int dflt)
Get the property from System props, trim junk off the end, and try to convert to int.
|
static long |
getLongProperty(String k)
Get the property from System props, trim junk off the end, and try to convert to int.
|
static long |
getLongProperty(String k,
long dflt)
Get the property from System props, trim junk off the end, and try to convert to int.
|
static String |
getStringProperty(String k)
Get the property from System props, trim junk off the end and return it.
|
static String |
getStringProperty(String k,
String dflt)
Get the property, trim junk off the end and return it.
|
public static int getIntProperty(String k)
The - name of the property to look for.org.springframework.scheduling.SchedulingException - if the property is not found or cannot be converted to a number.public static int getIntProperty(String k, int dflt)
The - name of the property to look for.org.springframework.scheduling.SchedulingException - if the property cannot be converted to a number.public static long getLongProperty(String k)
The - name of the property to look for.org.springframework.scheduling.SchedulingException - if the property does not exist or is not a number.public static long getLongProperty(String k, long dflt)
The - name of the property to look for.org.springframework.scheduling.SchedulingException - if the property is not a number.public static String getStringProperty(String k)
The - name of the property to look for.SchedlingException - if the property does not exist.public static String getStringProperty(String k, String dflt)
The - name of the property to look for.Scheduling - if the property does not exist.public static boolean getBooleanProperty(String k, boolean dflt)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.