Class PropertiesConfigAdapter<T>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.export.properties.PropertiesConfigAdapter<T>
- Type Parameters:
T
- the properties type
- Direct Known Subclasses:
PushRegistryPropertiesConfigAdapter
,SimplePropertiesConfigAdapter
,StatsdPropertiesConfigAdapter
Base class for properties to config adapters.
- Since:
- 2.0.0
- Author:
- Phillip Webb, Nikolay Rybak
-
Constructor Summary
ConstructorDescriptionPropertiesConfigAdapter
(T properties) Create a newPropertiesConfigAdapter
instance. -
Method Summary
-
Constructor Details
-
PropertiesConfigAdapter
Create a newPropertiesConfigAdapter
instance.- Parameters:
properties
- the source properties
-
-
Method Details
-
get
Get the value from the properties or use a fallback from thedefaults
.- Type Parameters:
V
- the value type- Parameters:
getter
- the getter for the propertiesfallback
- the fallback method, usually super interface method reference- Returns:
- the property or fallback value
-