Interface MessageResolver
public interface MessageResolver
A simplified variant of
MessageSourceAccessor
to allow more direct replacement with a no-op implementation in
case the target MessageSource
is unavailable to avoid resolution overhead.- Author:
- Oliver Drotbohm
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageResolver
of
(MessageSource messageSource) Obtains aMessageResolver
for the givenMessageSource
.resolve
(MessageSourceResolvable resolvable) Resolve the givenMessageSourceResolvable
.
-
Field Details
-
DEFAULTS_ONLY
-
-
Method Details
-
resolve
Resolve the givenMessageSourceResolvable
. Return null if no message was found.- Parameters:
resolvable
- must not be null.- Returns:
-
of
Obtains aMessageResolver
for the givenMessageSource
.- Parameters:
messageSource
- can be null.- Returns:
- will never be null.
-