Class EmbeddedValueResolutionSupport
java.lang.Object
org.springframework.context.support.EmbeddedValueResolutionSupport
- All Implemented Interfaces:
Aware
,EmbeddedValueResolverAware
- Direct Known Subclasses:
DateTimeFormatAnnotationFormatterFactory
,DurationFormatAnnotationFormatterFactory
,Jsr310DateTimeFormatAnnotationFormatterFactory
,Jsr354NumberFormatAnnotationFormatterFactory
,NumberFormatAnnotationFormatterFactory
Convenient base class for components with a need for embedded value resolution
(i.e.
EmbeddedValueResolverAware
consumers).- Since:
- 4.1
- Author:
- Juergen Hoeller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
resolveEmbeddedValue
(String value) Resolve the given embedded value through this instance'sStringValueResolver
.void
setEmbeddedValueResolver
(StringValueResolver resolver) Set the StringValueResolver to use for resolving embedded definition values.
-
Constructor Details
-
EmbeddedValueResolutionSupport
public EmbeddedValueResolutionSupport()
-
-
Method Details
-
setEmbeddedValueResolver
Description copied from interface:EmbeddedValueResolverAware
Set the StringValueResolver to use for resolving embedded definition values.- Specified by:
setEmbeddedValueResolver
in interfaceEmbeddedValueResolverAware
-
resolveEmbeddedValue
Resolve the given embedded value through this instance'sStringValueResolver
.- Parameters:
value
- the value to resolve- Returns:
- the resolved value, or always the original value if no resolver is available
- See Also:
-