org.eclipse.core.runtime.internal.adaptor
Class BundleLocalizationImpl

java.lang.Object
  extended by org.eclipse.core.runtime.internal.adaptor.BundleLocalizationImpl
All Implemented Interfaces:
org.eclipse.osgi.service.localization.BundleLocalization

public class BundleLocalizationImpl
extends java.lang.Object
implements org.eclipse.osgi.service.localization.BundleLocalization

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

Internal class.


Constructor Summary
BundleLocalizationImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleLocalizationImpl

public BundleLocalizationImpl()
Method Detail

getLocalization

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

Specified by:
getLocalization in interface org.eclipse.osgi.service.localization.BundleLocalization
Returns:
A ResourceBundle object for the given bundle and locale. If null is passed for the locale parameter, the default locale is used.