cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26138] New: - [PATCH] [i18n] Updated XMLResourceBundel, XMLResourceBundleFactory to detect changes in underlying file and reload it
Date Wed, 14 Jan 2004 18:23:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26138

[PATCH] [i18n] Updated XMLResourceBundel, XMLResourceBundleFactory to detect changes in underlying
file and reload it

           Summary: [PATCH] [i18n] Updated XMLResourceBundel,
                    XMLResourceBundleFactory to detect changes in underlying
                    file and reload it
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: kamal@banoora.net


Currently an XMLResourceBundle is not refreshed once read from file. With this
patch, the file will be loaded if the bundle is invalid with respect to the file.

The factory is responsible to ask the bundle to update itself before it hands a
bundle from the it's cache.

In XMLResourceBundle, made the load method actually load the file if it decides
that the bundle is invalid with respect to the file.

In XMLResourceBundle, changed the selctCached method to ask the bundle to update
itself by calling a new update method on XMLReousceBundle , which will call load
and warn on any exceptions.

Mime
View raw message