Package org.silverpeas.core.util
Class ConfigurationControl
- java.lang.Object
-
- java.util.ResourceBundle.Control
-
- org.silverpeas.core.util.ConfigurationControl
-
public class ConfigurationControl extends ResourceBundle.Control
Defines the frequency for ResourceBundle cache invalidation. The default period is 4 Hours. You can specify a period with the System propertysilverpeas.refresh.configuration
and a period in milliseconds.- Author:
- ehugonnet
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_RELOAD
static String
REFRESH_CONFIG
-
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
-
-
Constructor Summary
Constructors Constructor Description ConfigurationControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTimeToLive(String baseName, Locale locale)
-
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, needsReload, newBundle, toBundleName, toResourceName
-
-
-
-
Field Detail
-
DEFAULT_RELOAD
public static final long DEFAULT_RELOAD
- See Also:
- Constant Field Values
-
REFRESH_CONFIG
public static final String REFRESH_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimeToLive
public long getTimeToLive(String baseName, Locale locale)
- Overrides:
getTimeToLive
in classResourceBundle.Control
-
-