You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Vincent Massol <vm...@octo.com> on 2001/12/05 10:41:02 UTC

[proposal] Set of new components for excalibur

Hi,

I really like Avalon and have now switched to using it. Before Avalon, I had
the same idea : I called it Babel and put it on sourceforge
(http://sourceforge.net/projects/babel). Of course, it was not as well
finished as Avalon and the scope was more narrow : the idea was to offer a
service framework with a lightweight service manager and some fundamental
services (logging, configuration) + some more advanced ones (xml mapping to
java, jdbc data access and jndi access to start with).

It had a few interfaces but not as many as Avalon in term of lifecycle.
However the principles were quite similar but less nice in term of pattern
adoption. I did not have the distinction between component and services.
Everything was a service.

All this explains why I have now stopped the project and decided to focus on
Avalon and help in the little time that I have.

There are a few services (oops sorry, components) that I'd like to submit
for excalibur inclusion, that's if you think they might interest users :

- Configuration component based on properties file. It brings a few
additional features over standard property resource bundles : the ability to
be reconfigured at runtime + the ability to read property files located in
jars. The implementation is at :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/core/babel/ut
il/config/ (put there because these files were used internally by the bable
service manager to manage its own configuration). The interface is located
at :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/core/babel/se
rvice/config/ and the service itself is at :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/services/babe
l/service/config/

- JDBC wrapper. Located at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/services/babe
l/service/jdbcwrapper/
- JNDI wrapper. Located at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/services/babe
l/service/jndiwrapper/

All these components have unit tests written. Tests are located at  :
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/test/

If you think it is useful, I'd like to start by proposing the configuration
component. I am actually finishing transforming it into an Avalon component
(I use it on my current production project)

Thanks
-Vincent


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [proposal] Set of new components for excalibur

Posted by Peter Donald <pe...@apache.org>.
On Wed, 5 Dec 2001 20:41, Vincent Massol wrote:
> There are a few services (oops sorry, components) that I'd like to submit
> for excalibur inclusion, that's if you think they might interest users :
>
> - Configuration component based on properties file. It brings a few
> additional features over standard property resource bundles : the ability
> to be reconfigured at runtime + the ability to read property files located
> in jars. 

I had a look and it looks interesting. Basically it is a combination of 
org.apache.avalon.framework.parameters.Parameters and 
org.apache.avalon.excalibur.i18n.Resources. It has a few more extra features 
- some of which may be good to roll into Parameters (ie getURL() and maybe 
more). Would these satisfy the same needs? If not what would we need to add 
and all that.

Currently Resources is in excalibur and I have often thought about moving it 
to framework. It is useful in a wide enough domain and will be extremely 
useful when I finally get around to i18n'in the error messages withing 
framework. I am not 100% sure on it yet and want to wait a bit longer.

> - JNDI wrapper. Located at
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/babel/babel/src/services/bab
>e l/service/jndiwrapper/

This may be useful - I think Leo was just asking for something like this ;)


That said - I really haven't had a chance to look at it properly yet. 

-- 
Cheers,

Pete

"The ability to quote is a serviceable substitute for wit." -- Maugham

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>