Class SystemPropertiesSource

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

public class SystemPropertiesSource extends JavaPropertiesSource
A PropertySource implementation that reads configuration properties from the JVM system properties.

This source delegates to System.getProperties() to retrieve key-value pairs. It allows for application configuration using the -Dkey=value syntax when starting the JVM.

Example:


 java -Dmy.config.value=42 -jar my-app.jar
 

This value could then be resolved via PropertySource#get("my.config.value").

See Also:
  • Constructor Details

    • SystemPropertiesSource

      public SystemPropertiesSource()