Package org.eclipse.osgi.storage
Class BundleLocalizationImpl
java.lang.Object
org.eclipse.osgi.storage.BundleLocalizationImpl
- All Implemented Interfaces:
BundleLocalization
The implementation of the service that gets ResourceBundle objects from a
given bundle with a given locale.
Internal class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalization
(Bundle bundle, String locale) The getLocalization method gets a ResourceBundle object for the given locale and bundle.
-
Constructor Details
-
BundleLocalizationImpl
public BundleLocalizationImpl()
-
-
Method Details
-
getLocalization
The getLocalization method gets a ResourceBundle object for the given locale and bundle.- Specified by:
getLocalization
in interfaceBundleLocalization
- Parameters:
bundle
- the bundle to get localization forlocale
- the name of the locale to get, ornull
if the default locale is to be used- Returns:
- A
ResourceBundle
object for the given bundle and locale. If null is passed for the locale parameter, the default locale is used.
-