类 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)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longgetFileTimestamp()MessageFormatgetMessageFormat(String code, Locale locale)PropertiesgetProperties()StringgetProperty(String code)longgetRefreshTimestamp()voidsetRefreshTimestamp(long refreshTimestamp)
构造器详细资料
PropertiesHolder
public PropertiesHolder()
PropertiesHolder
public PropertiesHolder(Properties properties, long fileTimestamp)
方法详细资料
getProperties
@Nullable public Properties getProperties()
getFileTimestamp
public long getFileTimestamp()
setRefreshTimestamp
public void setRefreshTimestamp(long refreshTimestamp)
getRefreshTimestamp
public long getRefreshTimestamp()
getProperty
@Nullable public String getProperty(String code)
getMessageFormat
@Nullable public MessageFormat getMessageFormat(String code, Locale locale)