Class DefaultPropertySource

java.lang.Object
io.fluxcapacitor.common.application.DefaultPropertySource
All Implemented Interfaces:
PropertySource

public class DefaultPropertySource extends Object implements PropertySource
A layered PropertySource implementation used as the default source for resolving application properties in a Flux application.

This source provides a prioritized resolution order by chaining multiple individual sources:

  1. EnvironmentVariablesSource – highest precedence
  2. SystemPropertiesSource
  3. ApplicationEnvironmentPropertiesSource – e.g. application-dev.properties
  4. ApplicationPropertiesSource – fallback base configuration

Property values are resolved from the first source that defines them in this sequence.

This is used as the default property source in the FluxCapacitor client if no custom source is provided.

  • Constructor Details

    • DefaultPropertySource

      public DefaultPropertySource()
  • Method Details

    • get

      public String get(String name)
      Description copied from interface: PropertySource
      Retrieves the value of a property by name.
      Specified by:
      get in interface PropertySource
      Parameters:
      name - the name of the property to look up
      Returns:
      the property value, or null if not found