Enum PropertySourcePropertyResolver.PropertyCatalog

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      GENERATED
      The catalog that contains normalized keys and also generated keys.
      NORMALIZED
      The catalog that contains normalized keys.
      RAW
      The catalog that contains the raw keys.
    • Enum Constant Detail

      • NORMALIZED

        public static final PropertySourcePropertyResolver.PropertyCatalog NORMALIZED
        The catalog that contains normalized keys. A key is normalized into lower case hyphen separated form. For example an environment variable FOO_BAR would be normalized to foo.bar.
      • GENERATED

        public static final PropertySourcePropertyResolver.PropertyCatalog GENERATED
        The catalog that contains normalized keys and also generated keys. A synthetic key can be generated from an environment variable such as FOO_BAR_BAZ which will produce the following keys: foo.bar.baz, foo.bar-baz, and foo-bar.baz.
    • Method Detail

      • values

        public static PropertySourcePropertyResolver.PropertyCatalog[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PropertySourcePropertyResolver.PropertyCatalog c : PropertySourcePropertyResolver.PropertyCatalog.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PropertySourcePropertyResolver.PropertyCatalog valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null