Class DefaultPropertySource
java.lang.Object
io.fluxcapacitor.common.application.DefaultPropertySource
- All Implemented Interfaces:
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:
EnvironmentVariablesSource
– highest precedenceSystemPropertiesSource
ApplicationEnvironmentPropertiesSource
– e.g. application-dev.propertiesApplicationPropertiesSource
– 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.
-
Field Summary
Fields inherited from interface io.fluxcapacitor.common.application.PropertySource
substitutionPattern
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.common.application.PropertySource
andThen, containsProperty, get, getBoolean, getBoolean, require, substituteProperties
-
Constructor Details
-
DefaultPropertySource
public DefaultPropertySource()
-
-
Method Details
-
get
Description copied from interface:PropertySource
Retrieves the value of a property by name.- Specified by:
get
in interfacePropertySource
- Parameters:
name
- the name of the property to look up- Returns:
- the property value, or
null
if not found
-