public class SpringPropertiesProvider extends Object implements PropertiesProvider
PropertiesProvider exposing access to all Spring properties.
Note that we can't inject Environment via Spring DI as this provider instance is not Spring-managed.| Constructor and Description |
|---|
SpringPropertiesProvider() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
bindPropertyClass(String section,
Class<T> clazz) |
String |
getFeatureName() |
<T> T |
getProperty(String key,
Class<T> clazz,
T defaultValue) |
String |
getProperty(String key,
String defaultValue) |
boolean |
isActiveFeature() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, getProperty, hasPropertypublic <T> T bindPropertyClass(String section, Class<T> clazz)
bindPropertyClass in interface PropertiesProviderpublic String getProperty(String key, String defaultValue)
getProperty in interface PropertiesProviderpublic <T> T getProperty(String key, Class<T> clazz, T defaultValue)
getProperty in interface PropertiesProviderpublic boolean isActiveFeature()
isActiveFeature in interface Featurepublic String getFeatureName()
getFeatureName in interface FeatureCopyright © 2021. All rights reserved.