JDK-4403721 : (rb) RFE: Allow ResourceBundle.getBundle to load non-standard resource bundles
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.2.2,1.3.0,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_nt
  • CPU: generic,x86
  • Submitted: 2001-01-11
  • Updated: 2005-05-23
  • Resolved: 2005-05-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b38Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Name: krC82822			Date: 01/10/2001


orig synopsis:  "Provide factory semantics for ResourceBundle"

Classic VM (build JDK-1.2.2_006, native threads, symcjit)

I am developing a ResourceBundle subclass that uses an XML document to store
properties.  The intent is to be able to manage resources with files that
end with ".xml" and retrieve them via a mechanism similar to how
PropertyResourceBundle instances are created from ".properties" files.

The only way that this is possible with the current ResourceBundle implementation
is to provide a ClassLoader to the getBundle() method which implements the lookup
mechanism.  However, this creates complications for use of the mechanism in
applets.

I propose a ResourceBundleFactory interface with a
getBundle() method that returns a ResourceBundle.  An additional getBundle() method
in ResourceBundle would take a ResourceBundleFactory instance paramenter, plus
the baseName and locale parameters.  The factory implementation could determine
how/whether to address ClassLoader requirements.  Bug reports 4303146 and
4175293 are related.
(Review ID: 114586) 
======================================================================

Comments
EVALUATION john.oconner@Eng 2001-03-14 Introduced new nested class ResourceBundle.Control that allows you to use some different formats to describe resources. Please refer to its API doc for detail. ###@###.### 2005-05-17 02:53:32 GMT
17-05-2005