protected class ReloadableResourceBundleMessageSource.PropertiesHolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<java.util.Locale,java.text.MessageFormat>> |
cachedMessageFormats
Cache to hold already generated MessageFormats per message code
|
private long |
fileTimestamp |
private java.util.Properties |
properties |
private long |
refreshTimestamp |
Constructor and Description |
---|
ReloadableResourceBundleMessageSource.PropertiesHolder() |
ReloadableResourceBundleMessageSource.PropertiesHolder(java.util.Properties properties,
long fileTimestamp) |
Modifier and Type | Method and Description |
---|---|
long |
getFileTimestamp() |
java.text.MessageFormat |
getMessageFormat(java.lang.String code,
java.util.Locale locale) |
java.util.Properties |
getProperties() |
java.lang.String |
getProperty(java.lang.String code) |
long |
getRefreshTimestamp() |
void |
setRefreshTimestamp(long refreshTimestamp) |
private java.util.Properties properties
private long fileTimestamp
private long refreshTimestamp
private final java.util.Map<java.lang.String,java.util.Map<java.util.Locale,java.text.MessageFormat>> cachedMessageFormats
public ReloadableResourceBundleMessageSource.PropertiesHolder(java.util.Properties properties, long fileTimestamp)
public ReloadableResourceBundleMessageSource.PropertiesHolder()
public java.util.Properties getProperties()
public long getFileTimestamp()
public void setRefreshTimestamp(long refreshTimestamp)
public long getRefreshTimestamp()
public java.lang.String getProperty(java.lang.String code)
public java.text.MessageFormat getMessageFormat(java.lang.String code, java.util.Locale locale)