Package com.adaptris.core.management
Class SystemPropertiesUtil
- java.lang.Object
-
- com.adaptris.core.management.SystemPropertiesUtil
-
public class SystemPropertiesUtil extends java.lang.Object
Set additional system properties from properties stored in the bootstrap.properties file.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 theDecoder
implementation that matches the scheme will be used to decode the property before adding itsysprop.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMING_PACKAGE
-
Constructor Summary
Constructors Constructor Description SystemPropertiesUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
NAMING_PACKAGE
public static final java.lang.String NAMING_PACKAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addSystemProperties
public static void addSystemProperties(java.util.Properties p)
Add a subset of the properties parameter as system properties.- Parameters:
p
- properties that might contain system properties.
-
addJndiProperties
public static void addJndiProperties(java.util.Properties bootstrapProperties)
-
-