Interface MessageResolver
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultMessageResolver
public interface MessageResolver extends Serializable
Implementations have to resolve the text stored for a given key in the message source they are aware of. Implementations should always be @Dependent scoped!
-
-
Field Summary
Fields Modifier and Type Field Description static StringMISSING_RESOURCE_MARKERDefault missing resource marker
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetMessage(MessageContext messageContext, String messageTemplate, String category)
-
-
-
Field Detail
-
MISSING_RESOURCE_MARKER
static final String MISSING_RESOURCE_MARKER
Default missing resource marker- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessage
String getMessage(MessageContext messageContext, String messageTemplate, String category)
- Parameters:
messageContext- messageContext which should be usedmessageTemplate- the message key (or inline text) of the current messagecategory- the category of the message, e.g. 'longText'. Can benull- Returns:
- the final but not interpolated message text or
nullif an error happened or the resource could not be resolved.
-
-