Class ModuleBundleSentinel
- java.lang.Object
-
- java.util.ResourceBundle
-
- org.springframework.extensions.webscripts.ModuleBundleSentinel
-
public class ModuleBundleSentinel extends java.util.ResourceBundleThis class has been created for use the
AbstractWebScriptwhen retrievingResourceBundleinstances 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleBundleSentinelgetInstance()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.ObjecthandleGetObject(java.lang.String key)Implemented to fulfil the abstract superclass contract.
-
-
-
Method Detail
-
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 java.lang.Object handleGetObject(java.lang.String key)
Implemented to fulfil the abstract superclass contract.
- Specified by:
handleGetObjectin classjava.util.ResourceBundle- Returns:
null
-
getKeys
public java.util.Enumeration<java.lang.String> getKeys()
Implemented to fulfil the abstract superclass contract.
- Specified by:
getKeysin classjava.util.ResourceBundle- Returns:
null
-
-