@Name(value="nxHotReloadResourceBundleControl") @BypassInterceptors @Scope(value=SESSION) @AutoCreate public class HotReloadResourceBundleControl extends ResourceBundle.Control implements Serializable
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, toResourceName
public static HotReloadResourceBundleControl instance()
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException
newBundle
in class ResourceBundle.Control
IllegalAccessException
InstantiationException
IOException
Copyright © 2014 Nuxeo SA. All rights reserved.