Interface PropertiesSource

All Known Subinterfaces:
LoadablePropertiesSource

public interface PropertiesSource
A source for properties.

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 Details

    • getName

      String getName()
      Name of properties source
    • getProperty

      String getProperty(String name)
      Gets the property with the name
      Parameters:
      name - name of property
      Returns:
      the property value, or null if no property exists
    • getProperty

      default String getProperty(String name, String defaultValue)
      Gets the property with the name
      Parameters:
      name - name of property
      defaultValue - default value to use as fallback
      Returns:
      the property value, or null if no property exists