org.apache.geronimo.console.i18n
Class ConsoleResourceRegistry

java.lang.Object
  extended by org.apache.geronimo.console.i18n.ConsoleResourceRegistry

public class ConsoleResourceRegistry
extends Object

Each console extension will register its classloader to this GBean, then console-portal-driver can load the resource bundle for the above classloader.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ConsoleResourceRegistry()
           
 
Method Summary
static GBeanInfo getGBeanInfo()
           
 String handleGetObject(String basename, Locale locale, String key)
          Iterate the classloaders of the console extensions to find the value related to the key.
 void registerConsoleResource(ClassLoader classloader)
          Register the classloader of the console extension
 void removeConsoleResource(ClassLoader classloader)
          Remove the classloader of the console extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

ConsoleResourceRegistry

public ConsoleResourceRegistry()
Method Detail

registerConsoleResource

public void registerConsoleResource(ClassLoader classloader)
Register the classloader of the console extension

Parameters:
classloader - console plugin classloader to register

removeConsoleResource

public void removeConsoleResource(ClassLoader classloader)
Remove the classloader of the console extension

Parameters:
classloader - console plugin classloader to unregister

handleGetObject

public String handleGetObject(String basename,
                              Locale locale,
                              String key)
Iterate the classloaders of the console extensions to find the value related to the key.

Parameters:
basename - name of the bundle
locale - locale desired
key - key for desired string

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.