public class ResourceBundleManager extends Object implements org.osgi.framework.BundleListener
Constructor and Description |
---|
ResourceBundleManager(org.osgi.framework.BundleContext bundleContext)
Creates a new object and adds self as a bundle listener
|
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
void |
dispose()
Removes the bundle lister.
|
ResourceBundle |
getResourceBundle(org.osgi.framework.Bundle provider,
Locale locale)
This method is used to retrieve a /cached/ instance of the i18n resource associated
with a given bundle.
|
public ResourceBundleManager(org.osgi.framework.BundleContext bundleContext)
bundleContext
- the bundle context of the Web Console.public void dispose()
public ResourceBundle getResourceBundle(org.osgi.framework.Bundle provider, Locale locale)
provider
- the bundle, provider of the resourceslocale
- the requested locale.public final void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.