Class SIPTranslateMessageService

java.lang.Object
one.x1f.sip.foundation.core.translate.SIPTranslateMessageService
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Service public class SIPTranslateMessageService extends Object implements org.springframework.beans.factory.InitializingBean
Service used to get translated messages
  • Constructor Details

  • Method Details

    • getTranslatedMessage

      public String getTranslatedMessage(String key)
      Get a translated message by providing its key
      Parameters:
      key - a key to which a message is bound
      Returns:
      a translated message
    • getTranslatedMessage

      public String getTranslatedMessage(String key, Object... args)
      Get a translated message by providing its key and message arguments
      Parameters:
      key - a key to which a message is bound
      args - an array of arguments that will be filled in for params within the message
      Returns:
      translated message
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • get

      public static SIPTranslateMessageService get()