cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <>
Subject Re: XML Resource File?
Date Fri, 04 Feb 2000 19:43:39 GMT
Timm, Sean wrote:

> Does anyone else see this as useful, or is this ability already there, and
> I'm completely wasting my time? :)
> - Sean T.

java.util.ResourceBundle does this except it doesn't use XML but either
class files or properties files.  The implementation is up to the user if
they choose to implement their own classes but most people would use a Map
or Hashtable.  Anyway, it seems that since there are a lot of other issues
that ResourceBundle's handle transparently like class naming conventions
that allow the correct bundle to accessed based on the locale, reading files
from Properties files if the correct class isn't found, caching of the
object so it's available without having to reload it and other things, it
seems like you're up a against a pretty good existing model.  I'm not sure
what the advantage would be to have the resources stored as XML though?
Isn't it just a key/value pair when it comes down to it?


View raw message