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
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesConfigAdapter(T properties) Create a newPropertiesConfigAdapterinstance. -
Method Summary
-
Constructor Details
-
PropertiesConfigAdapter
Create a newPropertiesConfigAdapterinstance.- 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
-