public class SystemProperties extends Properties
A set of property bindings that are initialised from system properties passed
on the command line (typically using the "-D" option). All property names are
assumed to be in the form basename.suffix
where
basename
is common to all properties. The basename
will typically correspond to the name of a class or application. When
constructing the class a set of legal suffixes is specified. If a system
property is found with the specified
but an illegal
suffix then an IllegalArgumentExpcetion
will be thrown.
System.getProperty()
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
baseName |
static String[] |
jabmProperties |
protected static SystemProperties |
jabsConfiguration |
static String |
PROPERTY_BASE |
static String |
PROPERTY_BASE_DIR_NAME |
static String |
PROPERTY_CONFIG |
static String |
PROPERTY_CONFIG_ONLY |
static String |
PROPERTY_PROPFILE |
static String |
PROPERTY_SEED_MASK |
static String |
PROPERTY_SEEDS |
static String |
PROPERTY_VARFILE |
protected Set<String> |
propertyNames |
defaults
Constructor and Description |
---|
SystemProperties(String baseName,
Collection<String> propertyNames) |
SystemProperties(String baseName,
Set<String> propertyNames,
HashMap<String,String> defaultBindings) |
SystemProperties(String baseName,
String[] propertyNames) |
Modifier and Type | Method and Description |
---|---|
static SystemProperties |
jabsConfiguration() |
void |
readSystemProperties() |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
protected String baseName
protected static SystemProperties jabsConfiguration
public static final String PROPERTY_BASE
public static final String PROPERTY_BASE_DIR_NAME
public static final String PROPERTY_PROPFILE
public static final String PROPERTY_CONFIG_ONLY
public static final String PROPERTY_VARFILE
public static final String PROPERTY_CONFIG
public static final String PROPERTY_SEEDS
public static final String PROPERTY_SEED_MASK
public static final String[] jabmProperties
public SystemProperties(String baseName, Set<String> propertyNames, HashMap<String,String> defaultBindings) throws IllegalArgumentException
IllegalArgumentException
public SystemProperties(String baseName, Collection<String> propertyNames)
public void readSystemProperties() throws IllegalArgumentException
IllegalArgumentException
public static SystemProperties jabsConfiguration()
Copyright © 2014. All rights reserved.