Class FluxzeroAdditionalPropertiesSource

java.lang.Object
io.fluxzero.common.application.JavaPropertiesSource
io.fluxzero.common.application.FluxzeroAdditionalPropertiesSource
All Implemented Interfaces:
PropertySource

public class FluxzeroAdditionalPropertiesSource extends JavaPropertiesSource
A PropertySource that loads extra configuration from locations declared through "FLUXZERO_CONFIG_LOCATIONS".

The property can be set as an environment variable or JVM system property. Multiple locations can be separated with commas. Supported locations are file:/path/to/config.properties, plain file paths, and classpath:config.properties. Prefix a location with optional: to ignore it when it does not exist. Later locations override earlier locations.

  • Field Details

    • CONFIG_LOCATIONS_PROPERTY

      public static final String CONFIG_LOCATIONS_PROPERTY
      Environment variable or system property that points to extra Fluxzero configuration locations.
      See Also:
    • CONFIG_LOCATIONS_PROPERTY_ALIAS

      public static final String CONFIG_LOCATIONS_PROPERTY_ALIAS
      Lower-case system property alias for CONFIG_LOCATIONS_PROPERTY.
      See Also:
  • Constructor Details

    • FluxzeroAdditionalPropertiesSource

      public FluxzeroAdditionalPropertiesSource()
      Creates a source backed by the configured additional locations.