Interface LoadablePropertiesSource

All Superinterfaces:
PropertiesSource

public interface LoadablePropertiesSource extends PropertiesSource
A PropertiesSource whose properties can be loaded all at once during initialization, such as a .properties file.

In addition to looking up single values, a loadable source can return its entire set of properties via loadProperties() (optionally filtered by key) and can re-read them from the location to support reloading. Like any source it may implement Ordered to control precedence; the source with the highest precedence (the lowest number) is used first.

See Using PropertyPlaceholder in the Camel user manual.

Since:
3.0
See Also:
  • Method Details

    • loadProperties

      Properties loadProperties()
      Loads the properties from the source
      Returns:
      the loaded properties
    • loadProperties

      Properties loadProperties(Predicate<String> filter)
      Loads the properties from the source filtering them out according to a predicate.
      Parameters:
      filter - the predicate used to filter out properties based on the key.
      Returns:
      the properties loaded.
    • reloadProperties

      void reloadProperties(String location)
      Re-loads the properties from the file location
      Parameters:
      location - the location of the properties