@Name(value="nxHotReloadResourceBundleControl") @BypassInterceptors @Scope(value=SESSION) @AutoCreate public class HotReloadResourceBundleControl extends ResourceBundle.Control
Handles hot reload of resources when in dev mode, relying on the
ReloadService.flush() method to be called when needing to flush
messages.
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL| Constructor and Description |
|---|
HotReloadResourceBundleControl() |
| Modifier and Type | Method and Description |
|---|---|
static HotReloadResourceBundleControl |
instance() |
ResourceBundle |
newBundle(String baseName,
Locale locale,
String format,
ClassLoader loader,
boolean reload) |
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceNamepublic static HotReloadResourceBundleControl instance()
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException
newBundle in class ResourceBundle.ControlIllegalAccessExceptionInstantiationExceptionIOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.