info.joseluismartin.beans
Class StaticMessageSource

java.lang.Object
  extended by info.joseluismartin.beans.StaticMessageSource

public class StaticMessageSource
extends Object

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
static String getMessage(org.springframework.context.MessageSourceResolvable msr)
          I18n Support
static String getMessage(String code)
          I18n Support
static org.springframework.context.MessageSource getMessageSource()
           
static void setMessageSource(org.springframework.context.MessageSource messageSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessageSource

public static org.springframework.context.MessageSource getMessageSource()
Returns:
the messageSource

setMessageSource

public static void setMessageSource(org.springframework.context.MessageSource messageSource)
Parameters:
messageSource - the messageSource to set

getMessage

public static String getMessage(String code)
I18n Support

Parameters:
code - message code
Returns:
message or code if none defined

getMessage

public static String getMessage(org.springframework.context.MessageSourceResolvable msr)
I18n Support

Parameters:
msr - message source resolvable
Returns:
message or code if none defined


Copyright © 2012 JDAL. All Rights Reserved.