org.eclipse.osgi.service.localization
Interface BundleLocalization


public interface BundleLocalization

The interface of the service that gets ResourceBundle objects from a given bundle with a given locale.

This interface is not intended to be implemented by clients.

Since:
3.1

Method Summary
 java.util.ResourceBundle getLocalization(Bundle bundle, java.lang.String locale)
          The getLocalization method gets a ResourceBundle object for the given locale and bundle.
 

Method Detail

getLocalization

java.util.ResourceBundle getLocalization(Bundle bundle,
                                         java.lang.String locale)
The getLocalization method gets a ResourceBundle object for the given locale and bundle.

Parameters:
bundle - the bundle to get localization for
locale - the name of the locale to get
Returns:
A ResourceBundle object for the given bundle and locale. If null is passed for the locale parameter, the default locale is used.