类 ReloadableResourceBundleMessageSource.PropertiesHolder
- java.lang.Object
- org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder
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).
构造器概要
构造器 构造器 说明 PropertiesHolder()
PropertiesHolder(Properties properties, long fileTimestamp)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 long
getFileTimestamp()
MessageFormat
getMessageFormat(String code, Locale locale)
Properties
getProperties()
String
getProperty(String code)
long
getRefreshTimestamp()
void
setRefreshTimestamp(long refreshTimestamp)
构造器详细资料
PropertiesHolder
public PropertiesHolder()
PropertiesHolder
public PropertiesHolder(Properties properties, long fileTimestamp)
方法详细资料
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)