public class SpringPropertiesProvider extends Object implements PropertiesProvider
PropertiesProvider exposing access to all Spring properties.| Constructor and Description |
|---|
SpringPropertiesProvider(org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
bindPropertyClass(String section,
Class<T> clazz) |
<T> T |
getProperty(String key,
Class<T> clazz,
T defaultValue) |
String |
getProperty(String key,
String defaultValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperty, getProperty, hasPropertypublic SpringPropertiesProvider(org.springframework.core.env.Environment environment)
public <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 PropertiesProviderCopyright © 2023. All rights reserved.