Interface LoadablePropertiesSource
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionLoads the properties from the sourceloadProperties(Predicate<String> filter) Loads the properties from the source filtering them out according to a predicate.voidreloadProperties(String location) Re-loads the properties from the file locationMethods inherited from interface PropertiesSource
getName, getProperty, getProperty
-
Method Details
-
loadProperties
-
loadProperties
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
Re-loads the properties from the file location- Parameters:
location- the location of the properties
-