[Opensource] [Volunteer Call] Review Commons-Resources

Peter A. Pilgrim peterp at xenonsoft.demon.co.uk
Sat Aug 9 01:21:31 PDT 2003


Michael Rimov wrote:
> Hey Folks!
> 
> Craig McClanahan has asked me if the Expresso community could review the 
> Commons-Resources package.  Struts itself [and thus, indirectly 
> Expresso] will eventually be based off of it.
> 
> What is it?  An I18N package for dealing with different properties 
> files.  Check out the sandbox page for the rationale for the creation.
> 
> It basically is an API with a few implementations.  Craig says that 
> DB-based resources will eventually be added. [or at least a hook]
> 
> So!
> 
> Since the direction of Struts directly affects the direction of 
> Expresso.  Could we get some folks to take a look at:
> 
> http://jakarta.apache.org/commons/sandbox/resources/index.html
> 
> And report back:
> 
> 1 - Is there anything API-wise that MUST be changed for our own use?  If 
> so, now is the time to give Craig some critical design feedback so he 
> can get things changed while resources is still in the sandbox.
> 

An issue that has come up in the Struts-dev mailing list is the fact
the java.util.ResourceBundle supports `parent' attribute. Meaning
ResourceBundle can be delegated. I am not sure that common resources
has this support in it.

> 2 - Does it have anything worthwhile design wise to adopt directly into 
> Expresso?
> 

Since we use the Struts 1.1  MessageResource already I dont see anything
at mo...

> 3 - Is it usable?  ie, can you see how to code it straight away without 
> a lot of extraneous code?
> 

If you know the Struts API then it looks vaguely familiar. If haven't
used the Struts API before then YMMV.

The interesting thing is that common resources was a way to let Struts
developer move the application resources from a flat file to a
database. This might be interesting for implementing a `personalisation'
by storing application resources inside a simple name/value database
table. I suppose you can do the same with an implementation that
uses a `DBObject'. I am wondering how would plug-in your DBObject
application resource implementation into Struts.

Worth investigation?


> Thanks folks in advance!
>                             -Mike

--//--

-- 
Peter Pilgrim
            __ _____ _____ _____
           / //__  // ___// ___/   +  Serverside Java
          / /___/ // /__ / /__     +  Struts
         / // ___// ___// ___/     +  Expresso Committer
      __/ // /__ / /__ / /__       +  Independent Contractor
     /___//____//____//____/       +  Intrinsic Motivation
On Line Resume
    ||
    \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''




More information about the Opensource mailing list