Class DefaultPropertySource
java.lang.Object
io.fluxzero.common.application.DefaultPropertySource
- All Implemented Interfaces:
PropertySource
A layered
PropertySource implementation used as the default source for resolving application properties in a
Fluxzero application.
This source provides a prioritized resolution order by chaining multiple individual sources:
EnvironmentVariablesSource– highest precedenceSystemPropertiesSourceApplicationEnvironmentPropertiesSource– 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 Fluxzero client if no custom source is provided.
-
Field Summary
Fields inherited from interface PropertySource
substitutionPattern -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertySource
andThen, containsProperty, get, getBoolean, getBoolean, require, substituteProperties, substituteProperties
-
Constructor Details
-
DefaultPropertySource
public DefaultPropertySource()
-
-
Method Details
-
get
Description copied from interface:PropertySourceRetrieves the value of a property by name.- Specified by:
getin interfacePropertySource- Parameters:
name- the name of the property to look up- Returns:
- the property value, or
nullif not found
-