Class DefaultMessageResolver
- java.lang.Object
-
- org.apache.deltaspike.core.impl.message.DefaultMessageResolver
-
- All Implemented Interfaces:
Serializable,MessageResolver
@Dependent public class DefaultMessageResolver extends Object implements MessageResolver
Copy from deltaspike project- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.deltaspike.core.api.message.MessageResolver
MISSING_RESOURCE_MARKER
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage(MessageContext messageContext, String messageTemplate, String category)protected List<String>getMessageSources(MessageContext messageContext)
-
-
-
Method Detail
-
getMessage
public String getMessage(MessageContext messageContext, String messageTemplate, String category)
- Specified by:
getMessagein interfaceMessageResolver- 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.
-
getMessageSources
protected List<String> getMessageSources(MessageContext messageContext)
- Parameters:
messageContext- message context- Returns:
- sources
-
-