com.silverpeas.util
Class ConfigurationControl

java.lang.Object
  extended by java.util.ResourceBundle.Control
      extended by com.silverpeas.util.ConfigurationControl

public class ConfigurationControl
extends ResourceBundle.Control

Defines the frequencey forResourceBundle cache invalidation. The default period is 4 Hours. You can specify a period with the System property silverpeas.refresh.configuration and a period in milliseconds.

Author:
ehugonnet

Field Summary
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
ConfigurationControl()
           
 
Method Summary
 long getTimeToLive(String baseName, Locale locale)
           
 
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, needsReload, newBundle, toBundleName, toResourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ConfigurationControl

public ConfigurationControl()
Method Detail

getTimeToLive

public long getTimeToLive(String baseName,
                          Locale locale)
Overrides:
getTimeToLive in class ResourceBundle.Control


Copyright © 2016 Silverpeas. All Rights Reserved.