Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4403721

(rb) RFE: Allow ResourceBundle.getBundle to load non-standard resource bundles

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 6
    • 1.2.2, 1.3.0, 5.0
    • core-libs
    • b38
    • generic, x86
    • generic, windows_nt

    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)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              okutsu Masayoshi Okutsu
              kryansunw Kevin Ryan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: