org.springframework.context.support
Class ReloadableResourceBundleMessageSource.PropertiesHolder

java.lang.Object
  extended byorg.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder
Enclosing class:
ReloadableResourceBundleMessageSource

protected static class ReloadableResourceBundleMessageSource.PropertiesHolder
extends java.lang.Object

PropertiesHolder for caching. Stores the last-modified timestamp of the source file for efficient change detection, and the timestamp of the last refresh attempt (updated every time the cache entry gets re-validated).


Constructor Summary
protected ReloadableResourceBundleMessageSource.PropertiesHolder()
           
protected ReloadableResourceBundleMessageSource.PropertiesHolder(java.util.Properties properties, long fileTimestamp)
           
 
Method Summary
protected  long getFileTimestamp()
           
protected  java.text.MessageFormat getMessageFormat(java.lang.String code)
           
protected  java.util.Properties getProperties()
           
protected  long getRefreshTimestamp()
           
protected  void setRefreshTimestamp(long refreshTimestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadableResourceBundleMessageSource.PropertiesHolder

protected ReloadableResourceBundleMessageSource.PropertiesHolder(java.util.Properties properties,
                                                                 long fileTimestamp)

ReloadableResourceBundleMessageSource.PropertiesHolder

protected ReloadableResourceBundleMessageSource.PropertiesHolder()
Method Detail

getProperties

protected java.util.Properties getProperties()

getFileTimestamp

protected long getFileTimestamp()

setRefreshTimestamp

protected void setRefreshTimestamp(long refreshTimestamp)

getRefreshTimestamp

protected long getRefreshTimestamp()

getMessageFormat

protected java.text.MessageFormat getMessageFormat(java.lang.String code)


Copyright (C) 2003-2004 The Spring Framework Project.