Environment, PropertySourcesPropertyResolver
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsProperty(String key)
Return whether the given property key is available for resolution,
i.e. if the value for the given key is not |
| public String | getProperty(String
the property name to resolve key)Return the property value associated with the given key,
or |
| public String | getProperty(String
the property name to resolve key, String the default value to return if no value is found defaultValue)Return the property value associated with the given key, or
|
| public <T> T | getProperty(String
the property name to resolve key, Class<T> the expected type of the property value targetType)Return the property value associated with the given key,
or |
| public <T> T | getProperty(String
the property name to resolve key, Class<T> the expected type of the property value targetType, T the default value to return if no value is found defaultValue)Return the property value associated with the given key,
or |
| public String | getRequiredProperty(String key)
Return the property value associated with the given key (never |
| public <T> T | getRequiredProperty(String key, Class<T> targetType)
Return the property value associated with the given key, converted to the given
targetType (never |
| public String | Returns: the resolved String (nevernull)the String to resolve text)Resolve ${...} placeholders in the given text, replacing them with corresponding
property values as resolved by |
| public String | Returns: the resolved String (nevernull)Resolve ${...} placeholders in the given text, replacing them with corresponding
property values as resolved by |
| containsProperty | back to summary |
|---|---|
| public boolean containsProperty(String key) Return whether the given property key is available for resolution,
i.e. if the value for the given key is not | |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key) Return the property value associated with the given key,
or
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key, String defaultValue) Return the property value associated with the given key, or
| |
| getProperty | back to summary |
|---|---|
| public <T> T getProperty(String key, Class<T> targetType) Return the property value associated with the given key,
or
| |
| getProperty | back to summary |
|---|---|
| public <T> T getProperty(String key, Class<T> targetType, T defaultValue) Return the property value associated with the given key,
or
| |
| getRequiredProperty | back to summary |
|---|---|
| public String getRequiredProperty(String key) throws IllegalStateException Return the property value associated with the given key (never
| |
| getRequiredProperty | back to summary |
|---|---|
| public <T> T getRequiredProperty(String key, Class<T> targetType) throws IllegalStateException Return the property value associated with the given key, converted to the given
targetType (never
| |
| resolvePlaceholders | back to summary |
|---|---|
| public String resolvePlaceholders(String text) Resolve ${...} placeholders in the given text, replacing them with corresponding
property values as resolved by
| |
| resolveRequiredPlaceholders | back to summary |
|---|---|
| public String resolveRequiredPlaceholders(String text) throws IllegalArgumentException Resolve ${...} placeholders in the given text, replacing them with corresponding
property values as resolved by
| |