Class ResourceBundleMessageHandler

java.lang.Object
net.ideahut.springboot.message.ResourceBundleMessageHandler
All Implemented Interfaces:
net.ideahut.springboot.message.MessageHandler, org.springframework.beans.factory.InitializingBean

public class ResourceBundleMessageHandler extends Object implements net.ideahut.springboot.message.MessageHandler, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • ResourceBundleMessageHandler

      public ResourceBundleMessageHandler()
  • Method Details

    • setMessageSource

      public ResourceBundleMessageHandler setMessageSource(org.springframework.context.MessageSource messageSource)
    • setLocaleResolver

      public ResourceBundleMessageHandler setLocaleResolver(org.springframework.web.servlet.LocaleResolver localeResolver)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getText

      public String getText(String code, boolean checkArgs, String... args)
      Specified by:
      getText in interface net.ideahut.springboot.message.MessageHandler
    • getText

      public String getText(String code, String... args)
      Specified by:
      getText in interface net.ideahut.springboot.message.MessageHandler
    • getText

      public String getText(String code)
      Specified by:
      getText in interface net.ideahut.springboot.message.MessageHandler
    • getMessage

      public net.ideahut.springboot.object.Message getMessage(String code, boolean checkArgs, String... args)
      Specified by:
      getMessage in interface net.ideahut.springboot.message.MessageHandler
    • getMessage

      public net.ideahut.springboot.object.Message getMessage(String code, String... args)
      Specified by:
      getMessage in interface net.ideahut.springboot.message.MessageHandler
    • getMessage

      public net.ideahut.springboot.object.Message getMessage(String code)
      Specified by:
      getMessage in interface net.ideahut.springboot.message.MessageHandler
    • getMap

      public Map<String,String> getMap(String... codes)
      Specified by:
      getMap in interface net.ideahut.springboot.message.MessageHandler
    • getList

      public List<String> getList(String... codes)
      Specified by:
      getList in interface net.ideahut.springboot.message.MessageHandler