Package org.opensaml.spring.config
Class SpringPropertiesAdapter
java.lang.Object
org.opensaml.spring.config.SpringPropertiesAdapter
- All Implemented Interfaces:
ConfigurationProperties
An implementation of
ConfigurationProperties which wraps an instance of Spring PropertyResolver.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) Return the property value with the specified key, or null.getProperty(String key, String defaultValue) Return the property value with the specified key, or the specified default value if key does not exist.
-
Field Details
-
propertyResolver
The wrapped properties instance.
-
-
Constructor Details
-
SpringPropertiesAdapter
Constructor.- Parameters:
wrappedResolver- the wrapped properties resolver instance
-
-
Method Details
-
getProperty
Return the property value with the specified key, or null.- Specified by:
getPropertyin interfaceConfigurationProperties- Parameters:
key- the property key- Returns:
- the property value, or null
-
getProperty
Return the property value with the specified key, or the specified default value if key does not exist.- Specified by:
getPropertyin interfaceConfigurationProperties- Parameters:
key- the property keydefaultValue- the default value to return- Returns:
- the property value, or the specified default value
-