info.magnolia.module.blossom.context
Class MagnoliaMessageSource

java.lang.Object
  extended by org.springframework.context.support.MessageSourceSupport
      extended by org.springframework.context.support.AbstractMessageSource
          extended by info.magnolia.module.blossom.context.MagnoliaMessageSource
All Implemented Interfaces:
org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource

public class MagnoliaMessageSource
extends org.springframework.context.support.AbstractMessageSource

This is an adapter that exposes the Magnolia i18n support as a MessageSource.

Since:
1.0

Field Summary
 
Fields inherited from class org.springframework.context.support.MessageSourceSupport
logger
 
Constructor Summary
MagnoliaMessageSource()
           
 
Method Summary
protected  MessageFormat resolveCode(String code, Locale locale)
           
protected  String resolveCodeWithoutArguments(String code, Locale locale)
           
 
Methods inherited from class org.springframework.context.support.AbstractMessageSource
getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, renderDefaultMessage, resolveArguments, setParentMessageSource, setUseCodeAsDefaultMessage
 
Methods inherited from class org.springframework.context.support.MessageSourceSupport
createMessageFormat, formatMessage, isAlwaysUseMessageFormat, setAlwaysUseMessageFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnoliaMessageSource

public MagnoliaMessageSource()
Method Detail

resolveCodeWithoutArguments

protected String resolveCodeWithoutArguments(String code,
                                             Locale locale)
Overrides:
resolveCodeWithoutArguments in class org.springframework.context.support.AbstractMessageSource

resolveCode

protected MessageFormat resolveCode(String code,
                                    Locale locale)
Specified by:
resolveCode in class org.springframework.context.support.AbstractMessageSource


Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.