java.lang.Object | |
↳ | org.jfree.chart.util.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()); ...
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Finds and returns the specified resource bundle.
| |||||||||||
Maps directly to
ResourceBundle.getBundle(baseName, locale,
loader) . | |||||||||||
Finds and returns the specified resource bundle.
| |||||||||||
Instantiate a URLClassLoader for resource lookups where the
codeBase URL is removed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Finds and returns the specified resource bundle.
baseName | the base name. |
---|---|
locale | the locale. |
Maps directly to ResourceBundle.getBundle(baseName, locale,
loader)
.
baseName | the base name. |
---|---|
locale | the locale. |
loader | the class loader. |
Finds and returns the specified resource bundle.
baseName | the base name. |
---|
Instantiate a 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. |