info.magnolia.cms.i18n
Class DefaultMessagesImpl
java.lang.Object
info.magnolia.cms.i18n.AbstractMessagesImpl
info.magnolia.cms.i18n.DefaultMessagesImpl
- All Implemented Interfaces:
- Messages, Serializable
public class DefaultMessagesImpl
- extends AbstractMessagesImpl
- implements Serializable
Loads the message from properties files accessed as classpath resources.
- Version:
- $Revision$ ($Author$)
- Author:
- Philipp Bracher
- See Also:
- Serialized Form
DefaultMessagesImpl
protected DefaultMessagesImpl(String basename,
Locale locale)
get
public String get(String key)
- Get the message from the bundle.
- Specified by:
get
in interface Messages
- Parameters:
key
- the key
- Returns:
- message
getBundle
protected ResourceBundle getBundle()
- Returns the bundle for the current basename.
reload
public void reload()
throws Exception
- Description copied from interface:
Messages
- Reload the messages.
- Specified by:
reload
in interface Messages
- Throws:
Exception
keys
public Iterator<String> keys()
- Iterate over the keys.
- Specified by:
keys
in interface Messages
- Returns:
- iterator
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.