org.hd.d.pg2k.svrCore
Class ExhibitPropsGlobalImmutable.RBControl

java.lang.Object
  extended by java.util.ResourceBundle.Control
      extended by org.hd.d.pg2k.svrCore.ExhibitPropsGlobalImmutable.RBControl
Enclosing class:
ExhibitPropsGlobalImmutable

private static final class ExhibitPropsGlobalImmutable.RBControl
extends java.util.ResourceBundle.Control


Field Summary
private  PropertiesBundleDiff treedesc
          The treedesc bundle data; never null.
 
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
 
Constructor Summary
ExhibitPropsGlobalImmutable.RBControl(PropertiesBundleDiff treedesc)
          Wrap a control around the treedesc data.
 
Method Summary
 java.util.List<java.lang.String> getFormats(java.lang.String baseName)
          Claim a 'local' format, ie not properties or class.
 long getTimeToLive(java.lang.String baseName, java.util.Locale locale)
          Prevent cacheing in the ResourceBundle mechanism.
 boolean needsReload(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader loader, java.util.ResourceBundle bundle, long loadTime)
          Prevent cacheing in the ResourceBundle mechanism.
 java.util.ResourceBundle newBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader loader, boolean reload)
          Wrap our local treedesc bundle to return; null if no such bundle available.
 
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getNoFallbackControl, toBundleName, toResourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

treedesc

private final PropertiesBundleDiff treedesc
The treedesc bundle data; never null.

Constructor Detail

ExhibitPropsGlobalImmutable.RBControl

ExhibitPropsGlobalImmutable.RBControl(PropertiesBundleDiff treedesc)
Wrap a control around the treedesc data.

Method Detail

getFormats

public java.util.List<java.lang.String> getFormats(java.lang.String baseName)
Claim a 'local' format, ie not properties or class.

Overrides:
getFormats in class java.util.ResourceBundle.Control

newBundle

public java.util.ResourceBundle newBundle(java.lang.String baseName,
                                          java.util.Locale locale,
                                          java.lang.String format,
                                          java.lang.ClassLoader loader,
                                          boolean reload)
Wrap our local treedesc bundle to return; null if no such bundle available.

Overrides:
newBundle in class java.util.ResourceBundle.Control

needsReload

public boolean needsReload(java.lang.String baseName,
                           java.util.Locale locale,
                           java.lang.String format,
                           java.lang.ClassLoader loader,
                           java.util.ResourceBundle bundle,
                           long loadTime)
Prevent cacheing in the ResourceBundle mechanism.

Overrides:
needsReload in class java.util.ResourceBundle.Control

getTimeToLive

public long getTimeToLive(java.lang.String baseName,
                          java.util.Locale locale)
Prevent cacheing in the ResourceBundle mechanism.

Overrides:
getTimeToLive in class java.util.ResourceBundle.Control

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.