org.slim3.commons.message
Class MessageResourceBundleCache

java.lang.Object
  extended by org.slim3.commons.message.MessageResourceBundleCache

public class MessageResourceBundleCache
extends Object

A class to cache MessageResourceBundle.

Since:
3.0
Author:
higa

Field Summary
protected  MessageResourceBundle bundle
          The message bundle.
protected  File file
          The file for the message bundle.
protected  long lastModified
          The last modified time.
 
Constructor Summary
MessageResourceBundleCache(MessageResourceBundle bundle, File file)
          Constructor.
 
Method Summary
 MessageResourceBundle getBundle()
          Returns the message bundle.
 boolean isModified()
          Determines if the bundle is modified.
 void setBundle(MessageResourceBundle bundle)
          Sets the message bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected MessageResourceBundle bundle
The message bundle.


file

protected File file
The file for the message bundle.


lastModified

protected long lastModified
The last modified time.

Constructor Detail

MessageResourceBundleCache

public MessageResourceBundleCache(MessageResourceBundle bundle,
                                  File file)
Constructor.

Parameters:
bundle - the message bundle
file - the file for the message bundle
Method Detail

isModified

public boolean isModified()
Determines if the bundle is modified.

Returns:
whether the bundle is modified

getBundle

public MessageResourceBundle getBundle()
Returns the message bundle.

Returns:
the message bundle

setBundle

public void setBundle(MessageResourceBundle bundle)
Sets the message bundle.

Parameters:
bundle - the message bundle


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