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 Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
      Logger for this class.
    • messages

      protected Map<String,Properties> messages
      LOCALE => Properties.
    • defaultMessages

      protected final 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:
      resolveMessage in interface org.thymeleaf.messageresolver.IMessageResolver
    • createAbsentMessageRepresentation

      public String createAbsentMessageRepresentation(org.thymeleaf.context.ITemplateContext iTemplateContext, Class<?> aClass, String s, Object[] objects)
      Specified by:
      createAbsentMessageRepresentation in interface org.thymeleaf.messageresolver.IMessageResolver
    • getOrder

      public Integer getOrder()
      Specified by:
      getOrder in interface org.thymeleaf.messageresolver.IMessageResolver
    • getName

      public String getName()
      Specified by:
      getName in interface org.thymeleaf.messageresolver.IMessageResolver