Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.webapp.seam.messages
Class HotReloadResourceBundleControl

java.lang.Object
  extended by java.util.ResourceBundle.Control
      extended by org.nuxeo.ecm.webapp.seam.messages.HotReloadResourceBundleControl

@Name(value="nxHotReloadResourceBundleControl")
@BypassInterceptors
@Scope(value=SESSION)
@AutoCreate
public class HotReloadResourceBundleControl
extends ResourceBundle.Control

Resource bundle controller for Seam.

Handles hot reload of resources when in dev mode, relying on the ReloadService.flush() method to be called when needing to flush messages.

Since:
5.6

Field Summary
 
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
 
Constructor Summary
HotReloadResourceBundleControl()
           
 
Method Summary
static HotReloadResourceBundleControl instance()
           
 ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)
           
 
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotReloadResourceBundleControl

public HotReloadResourceBundleControl()
Method Detail

instance

public static HotReloadResourceBundleControl instance()

newBundle

public ResourceBundle newBundle(String baseName,
                                Locale locale,
                                String format,
                                ClassLoader loader,
                                boolean reload)
                         throws IllegalAccessException,
                                InstantiationException,
                                IOException
Overrides:
newBundle in class ResourceBundle.Control
Throws:
IllegalAccessException
InstantiationException
IOException

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.