public class PropertyReader
extends Object
Properties in DDMSence are found in the ddmsence.properties
file. All properties are prefixed with
"buri.ddmsence.", so getProperty
calls should be performed with just the property suffix.
The Property Reader supports several custom properties, which can be specified at runtime. Property Readers are thread-local, so the properties set in one Thread will not conflict with properties in another Thread. The complete list of configurable properties can be found on the DDMSence website at: https://ddmsence.urizone.net/documentation.jsp#tips-configuration.
Changing a namespace prefix will affect both components created from scratch and components loaded from XML files.
Modifier and Type | Method and Description |
---|---|
static List<String> |
getListProperty(String name)
Locates a list property and returns it as a List
|
static String |
getPrefix(String key)
Convenience method to look up an XML prefix
|
static String |
getProperty(String name)
Locates a property and returns it.
|
static void |
setProperty(String name,
String value)
Attempts to set one of the properties defined as a configurable property.
|
public static String getPrefix(String key)
key
- the schema key, such as ddms, ism, or ntk.public static String getProperty(String name)
name
- the simple name of the property, without "buri.ddmsence."IllegalArgumentException
- if the property does not exist.public static void setProperty(String name, String value)
name
- the key of the property, without the "buri.ddmsence." prefixvalue
- the new value of the propertyIllegalArgumentException
- if the property is not a valid configurable property.public static List<String> getListProperty(String name)
name
- the simple name of the property, without "buri.ddmsence."IllegalArgumentException
- if the property does not existCopyright 2010 - 2019 by Brian Uri!
Generated on 09/15/2016 12:36 PM
https://ddmsence.urizone.net/