info.magnolia.cms.i18n
Class EmptyMessages

java.lang.Object
  extended by info.magnolia.cms.i18n.AbstractMessagesImpl
      extended by info.magnolia.cms.i18n.EmptyMessages
All Implemented Interfaces:
Messages

public class EmptyMessages
extends AbstractMessagesImpl

A null-pattern implementation of the messages interface.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
 
Fields inherited from class info.magnolia.cms.i18n.AbstractMessagesImpl
basename, bundle, JS_OBJECTNAME, locale, log
 
Constructor Summary
EmptyMessages()
           
 
Method Summary
 String get(String key)
          Get the message from the bundle.
 Iterator<String> keys()
          Iterate over the keys.
 void reload()
          Reload the messages.
 
Methods inherited from class info.magnolia.cms.i18n.AbstractMessagesImpl
equals, get, getBasename, getLocale, getWithDefault, getWithDefault, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyMessages

public EmptyMessages()
Method Detail

get

public String get(String key)
Description copied from interface: Messages
Get the message from the bundle.

Parameters:
key - the key
Returns:
message

keys

public Iterator<String> keys()
Description copied from interface: Messages
Iterate over the keys.

Returns:
iterator

reload

public void reload()
            throws Exception
Description copied from interface: Messages
Reload the messages.

Throws:
Exception


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.