JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
boolean
containsProperty (java.lang.String key)
Return whether the given property key is available for resolution,
i.e.
java.lang.String
getProperty (java.lang.String key)
Return the property value associated with the given key,
or null
if the key cannot be resolved.
<T> T
getProperty (java.lang.String key,
java.lang.Class<T> targetValueType)
Return the property value associated with the given key,
or null
if the key cannot be resolved.
protected <T> T
getProperty (java.lang.String key,
java.lang.Class<T> targetValueType,
boolean resolveNestedPlaceholders)
protected java.lang.String
getPropertyAsRawString (java.lang.String key)
Retrieve the specified property as a raw String,
i.e.
protected void
logKeyFound (java.lang.String key,
PropertySource <?> propertySource,
java.lang.Object value)
Log the given key as found in the given
PropertySource
, resulting in
the given value.
Methods inherited from class org.springframework.core.env.AbstractPropertyResolver
convertValueIfNecessary , getConversionService , getProperty , getProperty , getRequiredProperty , getRequiredProperty , resolveNestedPlaceholders , resolvePlaceholders , resolveRequiredPlaceholders , setConversionService , setIgnoreUnresolvableNestedPlaceholders , setPlaceholderPrefix , setPlaceholderSuffix , setRequiredProperties , setValueSeparator , validateRequiredProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail
getProperty
@Nullable
public <T> T getProperty(java.lang.String key,
java.lang.Class<T> targetValueType)
Return the property value associated with the given key,
or null
if the key cannot be resolved.
Parameters:
key
- the property name to resolve
targetValueType
- the expected type of the property value
See Also:
PropertyResolver.getRequiredProperty(String, Class)
getPropertyAsRawString
@Nullable
protected java.lang.String getPropertyAsRawString(java.lang.String key)
Retrieve the specified property as a raw String,
i.e. without resolution of nested placeholders.
Specified by:
getPropertyAsRawString
in class AbstractPropertyResolver
Parameters:
key
- the property name to resolve
Returns:
the property value or null
if none found