Betty v1.1.0

christophedelory.betty
Class BettyResourceControl

java.lang.Object
  extended by java.util.ResourceBundle.Control
      extended by christophedelory.betty.BettyResourceControl

public class BettyResourceControl
extends ResourceBundle.Control

A custom ResourceBundle control.

Since:
0.9.2
Version:
$Revision$
Author:
Christophe Delory

Field Summary
static BettyResourceControl SINGLETON
          A ready-to-use instance of this class.
 
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
 
Constructor Summary
BettyResourceControl()
           
 
Method Summary
 long getTimeToLive(String baseName, Locale locale)
           
 void makeDirty()
          Flags this resource bundle control as "dirty".
 boolean needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
           
 
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, newBundle, toBundleName, toResourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final BettyResourceControl SINGLETON
A ready-to-use instance of this class.

Constructor Detail

BettyResourceControl

public BettyResourceControl()
Method Detail

makeDirty

public void makeDirty()
Flags this resource bundle control as "dirty". This will force a reload of the resources as soon as needed.

See Also:
needsReload(String,Locale,String,ClassLoader,ResourceBundle,long)

getTimeToLive

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

needsReload

public boolean needsReload(String baseName,
                           Locale locale,
                           String format,
                           ClassLoader loader,
                           ResourceBundle bundle,
                           long loadTime)
Overrides:
needsReload in class ResourceBundle.Control

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.