public class SystemPropertiesUtil
extends java.lang.Object
Any property prefixed by Constants.SYSTEM_PROPERTY_PREFIX
will be added as a system property (the prefix will be removed
first). If the property value starts with a '{scheme}' then the Decoder
implementation that matches the scheme will be used to decode the property before adding it
sysprop.plaintext=plaintext
sysprop.encrypted={password}PW:AAAAEDNPp8M3xBUiU+goN1cmjBYAAAAQorWHploKWvTb5bmjjgiCWQAAABCa6cnOef76qd67FXsgN4nV
In the above example the 'encrypted' property will be decrypted using a password decoder before System.setProperty('encrypted') is invoked
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMING_PACKAGE |
Constructor and Description |
---|
SystemPropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addJndiProperties(java.util.Properties bootstrapProperties) |
static void |
addSystemProperties(java.util.Properties p)
Add a subset of the properties parameter as system properties.
|
public static final java.lang.String NAMING_PACKAGE
public static void addSystemProperties(java.util.Properties p)
p
- properties that might contain system properties.public static void addJndiProperties(java.util.Properties bootstrapProperties)