|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.webconsole.internal.i18n.ResourceBundleManager
public class ResourceBundleManager
The ResourceBundleManager manages resource bundle instance per OSGi Bundle. It contains a local cache, for bundles, but when a bundle is being unistalled, its resources stored in the cache are cleaned up.
| Constructor Summary | |
|---|---|
ResourceBundleManager(org.osgi.framework.BundleContext bundleContext)
Creates a new object and adds self as a bundle listener |
|
| Method Summary | |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event)
|
void |
dispose()
Removes the bundle lister. |
java.util.ResourceBundle |
getResourceBundle(org.osgi.framework.Bundle provider,
java.util.Locale locale)
This method is used to retrieve a /cached/ instance of the i18n resource associated with a given bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceBundleManager(org.osgi.framework.BundleContext bundleContext)
bundleContext - the bundle context of the Web Console.| Method Detail |
|---|
public void dispose()
public java.util.ResourceBundle getResourceBundle(org.osgi.framework.Bundle provider,
java.util.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.BundleListenerBundleListener.bundleChanged(org.osgi.framework.BundleEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||