Package org.apache.camel.spi
Interface LoadablePropertiesSource
- All Superinterfaces:
PropertiesSource
A source for properties that can be loaded all at once during initialization, such as loading .properties files.
A source can implement
Ordered
to control the ordering of which sources are used by the Camel properties
component. The source with the highest precedence (the lowest number) will be used first.-
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.void
reloadProperties
(String location) Re-loads the properties from the file locationMethods inherited from interface org.apache.camel.spi.PropertiesSource
getName, getProperty
-
Method Details
-
loadProperties
Properties loadProperties()Loads the properties from the source- Returns:
- the loaded properties
-
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
-