Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » context » support » [javadoc | source]
org.springframework.context.support
public class: StaticMessageSource [javadoc | source]
java.lang.Object
   org.springframework.context.support.MessageSourceSupport
      org.springframework.context.support.AbstractMessageSource
         org.springframework.context.support.StaticMessageSource

All Implemented Interfaces:
    HierarchicalMessageSource

Simple implementation of org.springframework.context.MessageSource which allows messages to be registered programmatically. This MessageSource supports basic internationalization.

Intended for testing rather than for use in production systems.

Fields inherited from org.springframework.context.support.MessageSourceSupport:
logger
Method from org.springframework.context.support.StaticMessageSource Summary:
addMessage,   addMessages,   resolveCode,   toString
Methods from org.springframework.context.support.AbstractMessageSource:
getDefaultMessage,   getMessage,   getMessage,   getMessage,   getMessageFromParent,   getMessageInternal,   getParentMessageSource,   isUseCodeAsDefaultMessage,   renderDefaultMessage,   resolveArguments,   resolveCode,   resolveCodeWithoutArguments,   setParentMessageSource,   setUseCodeAsDefaultMessage
Methods from org.springframework.context.support.MessageSourceSupport:
createMessageFormat,   formatMessage,   isAlwaysUseMessageFormat,   renderDefaultMessage,   resolveArguments,   setAlwaysUseMessageFormat
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.support.StaticMessageSource Detail:
 public  void addMessage(String code,
    Locale locale,
    String msg) 
    Associate the given message with the given code.
 public  void addMessages(Map messages,
    Locale locale) 
    Associate the given message values with the given keys as codes.
 protected MessageFormat resolveCode(String code,
    Locale locale) 
 public String toString()