public class DuccProperties extends Properties
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_BROKER_URL |
static String |
AGENT_ENDPOINT |
static String |
AGENT_LOG_DIR |
protected boolean |
resolvePlaceholders |
defaults| Constructor and Description |
|---|
DuccProperties()
Null constructor now requried because we have a non-null constructor below.
|
DuccProperties(Properties p)
Convert a run-of-the-mill properties object into a handsome DuccProperties
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanProperty(String k,
boolean dflt) |
double |
getDoubleProperty(String k)
Get the property, trim junk off the end, and try to convert to double.
|
double |
getDoubleProperty(String k,
double dflt)
Get the property, trim junk off the end, and try to convert to double.
|
int |
getIntProperty(String k)
Get the property, trim junk off the end, and try to convert to int.
|
int |
getIntProperty(String k,
int dflt)
Get the property, trim junk off the end, and try to convert to int.
|
long |
getLongProperty(String k)
Get the property, trim junk off the end, and try to convert to int.
|
double |
getLongProperty(String k,
double dflt)
Get the property, trim junk off the end, and try to convert to double.
|
long |
getLongProperty(String k,
long dflt)
Get the property, trim junk off the end, and try to convert to int.
|
String |
getProperty(String k) |
String |
getStringProperty(String k)
Get the property, trim junk off the end and return it.
|
String |
getStringProperty(String k,
String dflt)
Get the property, trim junk off the end and return it.
|
void |
ignorePlaceholders()
Disable place-holder resolution when already done and any unresolved entries have been left as-is
for later substitution, e.g.
|
void |
load() |
void |
load(String agentPropertyFile) |
getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamespublic static final String AGENT_LOG_DIR
public static final String AGENT_BROKER_URL
public static final String AGENT_ENDPOINT
protected boolean resolvePlaceholders
public DuccProperties()
public DuccProperties(Properties p)
public int getIntProperty(String k)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public int getIntProperty(String k, int dflt)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public long getLongProperty(String k)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public long getLongProperty(String k, long dflt)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public double getDoubleProperty(String k)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public double getDoubleProperty(String k, double dflt)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public double getLongProperty(String k, double dflt)
The - name of the property to look for.MissingPropertyException - if the property does not exist.NumberFormattingException - if the property cannot be converted to a number.public String getStringProperty(String k)
The - name of the property to look for.MissingPropertyException - if the property does not exist.public String getStringProperty(String k, String dflt)
The - name of the property to look for.MissingPropertyException - if the property does not exist.public boolean getBooleanProperty(String k, boolean dflt)
public String getProperty(String k)
getProperty in class Propertiespublic void ignorePlaceholders()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.