Package de.odrotbohm.spring.web.model
Class I18nedMessage
java.lang.Object
de.odrotbohm.spring.web.model.I18nedMessage
- All Implemented Interfaces:
org.springframework.context.MessageSourceResolvable
public class I18nedMessage
extends Object
implements org.springframework.context.MessageSourceResolvable
Simple implementation of
MessageSourceResolvable to trigger translation of the given code(s). Useful, to e.g.
translate texts within ErrorsWithDetails.- Author:
- Oliver Drotbohm, Jens Kutzsche
- See Also:
-
ErrorsWithDetailsMessageSourceResolvableSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic I18nedMessageCreates a newI18nedMessagefor the given codes.withArguments(Object... arguments) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.MessageSourceResolvable
getArguments, getCodes, getDefaultMessage
-
Constructor Details
-
I18nedMessage
public I18nedMessage()
-
-
Method Details
-
of
Creates a newI18nedMessagefor the given codes.- Parameters:
code- the primary code to resolve.additionalCodes- additional codes to be used for lookup.- Returns:
- will never be null.
-
withArguments
-