|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.util.ResourceBundleWrapper
public class ResourceBundleWrapper
Wrapper of ResourceBundle.getBundle() methods. This wrapper is introduced to avoid a dramatic performance penalty by superfluous resource (and classes loaded by Class.forName) lookups on web server in applets.
public class AppletC extends javax.swing.JApplet { public void init() { ResourceBundleWrapper.removeCodeBase(getCodeBase(), (URLClassLoader) getClass().getClassLoader()); ...
Method Summary | |
---|---|
static java.util.ResourceBundle |
getBundle(java.lang.String baseName)
Finds and returns the specified resource bundle. |
static java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale)
Finds and returns the specified resource bundle. |
static java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader loader)
Maps directly to ResourceBundle.getBundle(baseName, locale,
loader) . |
static void |
removeCodeBase(java.net.URL codeBase,
java.net.URLClassLoader urlClassLoader)
Instantiate a URLClassLoader for resource lookups where the
codeBase URL is removed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void removeCodeBase(java.net.URL codeBase, java.net.URLClassLoader urlClassLoader)
URLClassLoader
for resource lookups where the
codeBase URL is removed. This method is typically called from an
applet's init() method. If this method is never called, the
getBundle()
methods map to the standard
ResourceBundle
lookup methods.
codeBase
- the codeBase URL.urlClassLoader
- the class loader.public static final java.util.ResourceBundle getBundle(java.lang.String baseName)
baseName
- the base name.
public static final java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale)
baseName
- the base name.locale
- the locale.
public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
ResourceBundle.getBundle(baseName, locale,
loader)
.
baseName
- the base name.locale
- the locale.loader
- the class loader.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |