Package org.apache.camel.spi
Interface LoadablePropertiesSource
-
- All Superinterfaces:
PropertiesSource
public interface LoadablePropertiesSource extends PropertiesSource
A source for properties that can be loaded all at once during initialization, such as loading .properties files. A source can implementOrdered
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Properties
loadProperties()
Loads the properties from the sourceProperties
loadProperties(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 location-
Methods inherited from interface org.apache.camel.spi.PropertiesSource
getName, getProperty
-
-
-
-
Method Detail
-
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
-
-