Class RecursiveProperties

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<Object,​Object>

    public class RecursiveProperties
    extends Properties
    Overrides Properties in order to check if the expected value contains another property key like ${...}. It that case, the key will be replaced by its value if possible.

    Example :

     myFirstName=John
     myName=Doe
     org.nuiton.topia.userInfo.fullName=${fullName}
     fullName=${myFirstName} ${myName}
     namePhrase=My name is ${myName}.
     instruction=Put your text like this : ${myText}
     

    Then:

    • getProperty("org.nuiton.topia.userInfo.fullName")"John Doe"
    • getProperty("namePhrase")"My name is Doe."
    • getProperty("instruction")"Put your text like this : ${myText}"

    Created by tchemit on 29/12/2017.

    Author:
    Tony Chemit - dev@tchemit.fr, Arnaud Thimel - thimel@codelutin.com
    See Also:
    Serialized Form
    • Constructor Detail

      • RecursiveProperties

        public RecursiveProperties​(Properties defaults,
                                   String variableStart,
                                   String variableEnd)
      • RecursiveProperties

        public RecursiveProperties​(String variableStart,
                                   String variableEnd)
      • RecursiveProperties

        public RecursiveProperties()
      • RecursiveProperties

        public RecursiveProperties​(Properties defaults)