Interface PropertiesSourceFactory
public interface PropertiesSourceFactory
Factory for creating the built-in
PropertiesSource implementations used by the PropertiesComponent.
Given a property location, the factory produces the appropriate source: file-based, classpath-based, or one backed by
a Properties bean looked up by reference in the Registry. The properties component uses
this to turn configured locations into active sources during initialization.
See Using PropertyPlaceholder in the
Camel user manual.- Since:
- 4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnewClasspathPropertiesSource(String location) Creates a new classpath basedPropertiesSource.newFilePropertiesSource(String location) Creates a new file basedPropertiesSource.Creates a new ref basedPropertiesSource.
-
Method Details
-
newFilePropertiesSource
Creates a new file basedPropertiesSource.- Parameters:
location- location of the file- Returns:
- the properties source
-
newClasspathPropertiesSource
Creates a new classpath basedPropertiesSource.- Parameters:
location- location of the file in the classpath- Returns:
- the properties source
-
newRefPropertiesSource
Creates a new ref basedPropertiesSource.- Parameters:
ref- id for thePropertiesbean- Returns:
- the properties source
-