站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

ReloadableResourceBundleMessageSource.PropertiesHolder (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.context.support
Class ReloadableResourceBundleMessageSource.PropertiesHolder

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

protected class ReloadableResourceBundleMessageSource.PropertiesHolder
extends 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
ReloadableResourceBundleMessageSource.PropertiesHolder()
           
ReloadableResourceBundleMessageSource.PropertiesHolder(Properties properties, long fileTimestamp)
           
 
Method Summary
 long getFileTimestamp()
           
 MessageFormat getMessageFormat(String code, Locale locale)
           
 Properties getProperties()
           
 String getProperty(String code)
           
 long getRefreshTimestamp()
           
 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

public ReloadableResourceBundleMessageSource.PropertiesHolder(Properties properties,
                                                              long fileTimestamp)

ReloadableResourceBundleMessageSource.PropertiesHolder

public ReloadableResourceBundleMessageSource.PropertiesHolder()
Method Detail

getProperties

public Properties getProperties()

getFileTimestamp

public long getFileTimestamp()

setRefreshTimestamp

public void setRefreshTimestamp(long refreshTimestamp)

getRefreshTimestamp

public long getRefreshTimestamp()

getProperty

public String getProperty(String code)

getMessageFormat

public MessageFormat getMessageFormat(String code,
                                      Locale locale)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.