org.slim3.struts.util
Class S3PropertyMessageResources

java.lang.Object
  extended by org.apache.struts.util.MessageResources
      extended by org.slim3.struts.util.S3PropertyMessageResources
All Implemented Interfaces:
Serializable, Disposable

public class S3PropertyMessageResources
extends MessageResources
implements Disposable

MessageResources for Slim3.

Since:
3.0
Author:
higa
See Also:
Serialized Form

Field Summary
protected  boolean initialized
          Whether this object is initialized.
 
Fields inherited from class org.apache.struts.util.MessageResources
config, defaultFactory, defaultLocale, factory, formats, log, returnNull
 
Constructor Summary
S3PropertyMessageResources(MessageResourcesFactory factory, String config)
          Constructor.
 
Method Summary
 void dispose()
          Disposes resource.
 String getMessage(Locale locale, String key)
           
 void initialize()
          Initializes this object.
 
Methods inherited from class org.apache.struts.util.MessageResources
escape, getConfig, getFactory, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessageResources, getReturnNull, isEscape, isPresent, isPresent, localeKey, log, log, messageKey, messageKey, setEscape, setReturnNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

protected volatile boolean initialized
Whether this object is initialized.

Constructor Detail

S3PropertyMessageResources

public S3PropertyMessageResources(MessageResourcesFactory factory,
                                  String config)
Constructor.

Parameters:
factory - the message resources factory
config - the path of configuration file
Method Detail

getMessage

public String getMessage(Locale locale,
                         String key)
Specified by:
getMessage in class MessageResources

initialize

public void initialize()
Initializes this object.


dispose

public void dispose()
Description copied from interface: Disposable
Disposes resource.

Specified by:
dispose in interface Disposable


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.