Class 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 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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAMING_PACKAGE  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemPropertiesUtil

        public SystemPropertiesUtil()
    • 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)