Class ResourceBundleLocatorImpl
java.lang.Object
ddf.platform.resource.bundle.locator.ResourceBundleLocatorImpl
- All Implemented Interfaces:
ResourceBundleLocator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a resource bundle for a given properties file.final ResourceBundleRetrieves a resource bundle for a given properties file
-
Constructor Details
-
ResourceBundleLocatorImpl
public ResourceBundleLocatorImpl()
-
-
Method Details
-
getBundle
Description copied from interface:ResourceBundleLocatorRetrieves a resource bundle for a given properties file. By default it uses the default locale for this instance of the java virtual machine- Specified by:
getBundlein interfaceResourceBundleLocator- Parameters:
baseName- The base name of the resource bundle- Returns:
- A resource bundle for the given base name
- Throws:
IOException- if an error occurs while reading or parsing the file
-
getBundle
Description copied from interface:ResourceBundleLocatorRetrieves a resource bundle for a given properties file- Specified by:
getBundlein interfaceResourceBundleLocator- Parameters:
baseName- The base name of the resource bundlelocale- The locale of the desired resource bundle- Returns:
- A resource bundle for the given base name and locale
- Throws:
IOException- if an error occurs while reading or parsing the file
-