@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.
| Modifier and Type | Field and Description |
|---|---|
protected long |
timeToLive |
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, toResourceNameprotected long timeToLive
public HotReloadResourceBundleControl()
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.ControlIllegalAccessExceptionInstantiationExceptionIOExceptionCopyright © 2018 Nuxeo. All rights reserved.