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 Details

    • newFilePropertiesSource

      PropertiesSource newFilePropertiesSource(String location)
      Creates a new file based PropertiesSource.
      Parameters:
      location - location of the file
      Returns:
      the properties source
    • newClasspathPropertiesSource

      PropertiesSource newClasspathPropertiesSource(String location)
      Creates a new classpath based PropertiesSource.
      Parameters:
      location - location of the file in the classpath
      Returns:
      the properties source
    • newRefPropertiesSource

      PropertiesSource newRefPropertiesSource(String ref)
      Creates a new ref based PropertiesSource.
      Parameters:
      ref - id for the Properties bean
      Returns:
      the properties source