| java.lang.Object com.sun.rave.faces.util.ComponentBundle
All known Subclasses: com.sun.rave.faces.util.DesignTimeComponentBundle,
Method Summary | |
public static ComponentBundle | getBundle(Class c) | public static ComponentBundle | getBundle(Class c, String suffix) Return the component bundle found in class c's package.
The name of the bundle file is Bundle.properties. | public String | getMessage(String key) | public String | getMessage(String key, Object arg1) | public String | getMessage(String key, Object arg1, Object arg2) | public String | getMessage(String key, Object arg1, Object arg2, Object arg3) | public String | getMessage(String key, Object[] args) | public String | getMessage(String key, Object[] args, boolean escapeSingleQuotes) | public void | init(String baseName, ClassLoader classLoader) If a class loader is not passed in, I will only be able to fetch ResourceBundles that
are reachable from MY class loader. |
ComponentBundle | protected ComponentBundle()(Code) | | |
getBundle | public static ComponentBundle getBundle(Class c, String suffix)(Code) | | Return the component bundle found in class c's package.
The name of the bundle file is Bundle.properties. If suffix
is not null and not empty, then the bundle file will be
Bundle-<suffix>.properties.
Parameters: c - Parameters: suffix - |
init | public void init(String baseName, ClassLoader classLoader)(Code) | | If a class loader is not passed in, I will only be able to fetch ResourceBundles that
are reachable from MY class loader. This is due to a bug in ResourceBundle that
goes up the stack only 2 levels in order to find the appropriate class loader.
Since I provide a level of indirection, I will ALWAYS be the callee, and therefore
at the 2nd level.
See source for ResourceBundle.getBundle() ResourceBundle.getLoader().
Parameters: baseName - |
|
|