PropertyResolver
types. Provides facilities for accessing and customizing the
ConversionService
used when converting property values from one type to another.
| Modifier and Type | Method and Description |
|---|---|
| public ConfigurableConversionService | getConversionService()
Return the |
| public void | setConversionService(ConfigurableConversionService conversionService)
Set the |
| public void | setIgnoreUnresolvableNestedPlaceholders(boolean ignoreUnresolvableNestedPlaceholders)
Set whether to throw an exception when encountering an unresolvable placeholder nested within the value of a given property. |
| public void | setPlaceholderPrefix(String placeholderPrefix)
Set the prefix that placeholders replaced by this resolver must begin with. |
| public void | setPlaceholderSuffix(String placeholderSuffix)
Set the suffix that placeholders replaced by this resolver must end with. |
| public void | setRequiredProperties(String... requiredProperties)
Specify which properties must be present, to be verified by
|
| public void | setValueSeparator(String valueSeparator)
Specify the separating character between the placeholders replaced by this
resolver and their associated default value, or |
| public void | validateRequiredProperties()
Validate that each of the properties specified by
|
| getConversionService | back to summary |
|---|---|
| public ConfigurableConversionService getConversionService() Return the The configurable nature of the returned conversion service allows for
the convenient addition and removal of individual ConfigurableConversionService cs = env.getConversionService(); cs.addConverter(new FooConverter()); | |
| setConversionService | back to summary |
|---|---|
| public void setConversionService(ConfigurableConversionService conversionService) Set the Note as an alternative to fully replacing the
| |
| setIgnoreUnresolvableNestedPlaceholders | back to summary |
|---|---|
| public void setIgnoreUnresolvableNestedPlaceholders(boolean ignoreUnresolvableNestedPlaceholders) Set whether to throw an exception when encountering an unresolvable placeholder
nested within the value of a given property. A Implementations of
| |
| setPlaceholderPrefix | back to summary |
|---|---|
| public void setPlaceholderPrefix(String placeholderPrefix) Set the prefix that placeholders replaced by this resolver must begin with. | |
| setPlaceholderSuffix | back to summary |
|---|---|
| public void setPlaceholderSuffix(String placeholderSuffix) Set the suffix that placeholders replaced by this resolver must end with. | |
| setRequiredProperties | back to summary |
|---|---|
| public void setRequiredProperties(String... requiredProperties) Specify which properties must be present, to be verified by
| |
| setValueSeparator | back to summary |
|---|---|
| public void setValueSeparator(String valueSeparator) Specify the separating character between the placeholders replaced by this
resolver and their associated default value, or | |
| validateRequiredProperties | back to summary |
|---|---|
| public void validateRequiredProperties() throws MissingRequiredPropertiesException Validate that each of the properties specified by
| |