Package org.ff4j.web.thymeleaf
Class CustomMessageResolver
java.lang.Object
org.ff4j.web.thymeleaf.CustomMessageResolver
- All Implemented Interfaces:
org.thymeleaf.messageresolver.IMessageResolver
public class CustomMessageResolver
extends Object
implements org.thymeleaf.messageresolver.IMessageResolver
All message in the same properties file embedded.
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertiesDefault properties "messages.properties".static final org.slf4j.LoggerLogger for this class.protected Map<String, Properties> LOCALE => Properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAbsentMessageRepresentation(org.thymeleaf.context.ITemplateContext iTemplateContext, Class<?> aClass, String s, Object[] objects) getName()getOrder()voidresolveMessage(org.thymeleaf.context.ITemplateContext iTemplateContext, Class<?> aClass, String s, Object[] objects)
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERLogger for this class. -
messages
LOCALE => Properties. -
defaultMessages
Default properties "messages.properties".
-
-
Constructor Details
-
CustomMessageResolver
public CustomMessageResolver()Default constructor.
-
-
Method Details
-
initialize
public void initialize() -
resolveMessage
public String resolveMessage(org.thymeleaf.context.ITemplateContext iTemplateContext, Class<?> aClass, String s, Object[] objects) - Specified by:
resolveMessagein interfaceorg.thymeleaf.messageresolver.IMessageResolver
-
createAbsentMessageRepresentation
public String createAbsentMessageRepresentation(org.thymeleaf.context.ITemplateContext iTemplateContext, Class<?> aClass, String s, Object[] objects) - Specified by:
createAbsentMessageRepresentationin interfaceorg.thymeleaf.messageresolver.IMessageResolver
-
getOrder
- Specified by:
getOrderin interfaceorg.thymeleaf.messageresolver.IMessageResolver
-
getName
- Specified by:
getNamein interfaceorg.thymeleaf.messageresolver.IMessageResolver
-