Interface PropertySource

    • Field Detail

      • CONTEXT

        static final java.lang.String CONTEXT
        The name of the property source with values supplied directly from the context.
        See Also:
        Constant Field Values
    • Method Detail

      • getName

        java.lang.String getName()
        Returns:
        The name of the property source
      • get

        java.lang.Object get​(java.lang.String key)
        Get a property value of the given key.
        Parameters:
        key - The key
        Returns:
        The value
      • of

        static PropertySource of​(java.lang.String name,
                                 java.util.Map<java.lang.String,​java.lang.Object> map)
        Create a PropertySource from the given map.
        Parameters:
        name - The name of the property source
        map - The map
        Returns:
        The PropertySource
      • of

        static PropertySource of​(java.lang.String name,
                                 java.lang.Object... values)
        Create a PropertySource from the given map.
        Parameters:
        name - The name of the property source
        values - The values as an array of alternating key/value entries
        Returns:
        The PropertySource
        Since:
        2.0
      • mapOf

        static java.util.Map<java.lang.String,​java.lang.Object> mapOf​(java.lang.Object... values)
        Create a LinkedHashMap of configuration from an array of values.
        Parameters:
        values - The values
        Returns:
        The created map
        Since:
        2.0
      • of

        static PropertySource of​(java.lang.String name,
                                 java.util.Map<java.lang.String,​java.lang.Object> map,
                                 int priority)
        Create a PropertySource from the given map.
        Parameters:
        name - The name of the property source
        map - The map
        priority - The priority to order by
        Returns:
        The PropertySource