Class ModuleBundleSentinel
java.lang.Object
java.util.ResourceBundle
org.springframework.extensions.webscripts.ModuleBundleSentinel
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
ResourceBundle.Control -
Field Summary
Fields inherited from class java.util.ResourceBundle
parent -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleBundleSentinelRetrieves the singleton instance and creates it if it does not exist.getKeys()Implemented to fulfil the abstract superclass contract.protected ObjecthandleGetObject(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
-
Method Details
-
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
Implemented to fulfil the abstract superclass contract.
- Specified by:
handleGetObjectin classResourceBundle- Returns:
null
-
getKeys
Implemented to fulfil the abstract superclass contract.
- Specified by:
getKeysin classResourceBundle- Returns:
null
-