Class SystemUtil

  • public final class SystemUtil
    extends Object
    Marko A. Rodriguez (
    • Method Detail

      • getSystemPropertiesConfiguration

        public static org.apache.commons.configuration2.Configuration getSystemPropertiesConfiguration​(String prefix,
                                                                                                       boolean trimPrefix)
        Generate a Configuration from the System.getProperties(). Only those properties with specified prefix key are aggregated. If the prefix and a . should be removed, then trim prefix.
        prefix - the prefix of the keys to include in the configuration
        trimPrefix - whether to trim the prefix + . from the key
        a configuration generated from the System properties