Class ModuleBundleSentinel

java.lang.Object
java.util.ResourceBundle
org.springframework.extensions.webscripts.ModuleBundleSentinel

public class ModuleBundleSentinel extends 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
  • Method Details

    • getInstance

      public static ModuleBundleSentinel getInstance()

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

      This has been changed to use our ModuleBundleSentinelLoader, to make the singleton instance creation thread safe.

      Returns:
      The singleton instance.
    • handleGetObject

      protected Object handleGetObject(String key)

      Implemented to fulfil the abstract superclass contract.

      Specified by:
      handleGetObject in class ResourceBundle
      Returns:
      null
    • getKeys

      public Enumeration<String> getKeys()

      Implemented to fulfil the abstract superclass contract.

      Specified by:
      getKeys in class ResourceBundle
      Returns:
      null