Class ConfigPropertiesCascadeUtils

    • Constructor Detail

      • ConfigPropertiesCascadeUtils

        public ConfigPropertiesCascadeUtils()
    • Method Detail

      • substituteExpressionLanguage

        public static String substituteExpressionLanguage​(String stringToParse,
                                                          Map<String,​Object> variableMap)
        substitute an EL for objects. Don't worry if something returns null
        Parameters:
        stringToParse - The string to parse
        variableMap - replacement mappings
        Returns:
        the string The modified strings, with replacements
      • substituteExpressionLanguage

        public static String substituteExpressionLanguage​(String stringToParse,
                                                          Map<String,​Object> variableMap,
                                                          boolean allowStaticClasses,
                                                          boolean silent,
                                                          boolean lenient,
                                                          boolean logOnNull)
        substitute an EL for objects
        Parameters:
        stringToParse - the String containing EL
        variableMap - replacement mappings
        allowStaticClasses - if true allow static classes not registered with context
        silent - if silent mode, swallow exceptions (warn), and dont warn when variable not found
        lenient - false if undefined variables should throw an exception. if lenient is true (default) then undefined variables are null
        logOnNull - if null output of substitution should be logged
        Returns:
        the string