Class ModuleBundleSentinel


  • public class ModuleBundleSentinel
    extends java.util.ResourceBundle

    This class has been created for use the AbstractWebScript when retrieving ResourceBundle instances provided by extension modules. Because it is not mandatory for a module to provide a bundle it is quite possible that a search will return no value. In order to prevent repeatedly searching unsuccessfully for the same file this singleton object should be cached instead. in caches to indicate

    Author:
    David Draper
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Field Summary

      • Fields inherited from class java.util.ResourceBundle

        parent
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ModuleBundleSentinel getInstance()
      Retrieves the singleton instance and creates it if it does not exist.
      java.util.Enumeration<java.lang.String> getKeys()
      Implemented to fulfil the abstract superclass contract.
      protected java.lang.Object handleGetObject​(java.lang.String key)
      Implemented to fulfil the abstract superclass contract.
      • Methods inherited from class java.util.ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static ModuleBundleSentinel getInstance()

        Retrieves the singleton instance and creates it if it does not exist.

        Returns:
        The singleton instance.
      • handleGetObject

        protected java.lang.Object handleGetObject​(java.lang.String key)

        Implemented to fulfil the abstract superclass contract.

        Specified by:
        handleGetObject in class java.util.ResourceBundle
        Returns:
        null
      • getKeys

        public java.util.Enumeration<java.lang.String> getKeys()

        Implemented to fulfil the abstract superclass contract.

        Specified by:
        getKeys in class java.util.ResourceBundle
        Returns:
        null