You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Jörg Hohwiller <jo...@j-hohwiller.de> on 2004/06/04 23:31:09 UTC
Re: commons-configuration and commons-logging
Hallo Dev,
seems that this list is more interested on philosophy about spam and the
universe than disscussions about the philosophy of avalon - nice jokes about
that spam anyways but I would like to see some response to my mail or is it
misplaced here???
Take care
Jörg
On Friday 21 May 2004 17:12, Jörg Hohwiller wrote:
> Hi there,
>
> I am new to this list but have been using avalon + ECM in a project before
> and plan to use avalon + merlin for my current open-source project.
>
> I can see there is commons-configuration (which seems as it came from
> avalon) and commons-logging. I saw in the archive that there was a
> discussion about logkit vs. commons-logging + log4j before.
> I would like to know if you are planning to directly use c-configuration
> and c-logging in the avalon framework API?
> I personally think the commons initiative is a great thing and I can still
> remember myself digging deep in apache projects sources to find a ready to
> use cache, pool or whatever implementation.
> Now why not just using these APIs as part of the avalon API?
> I can see that changing an API this way in general is a bad thing because
> of loosing downward compatibility but on the other hand it is not a bid
> thing to replace org.apache.avalon.framework.configuration to
> org.apache.commons.configuration and org.apache.avalon.framework.logger
> to org.apache.commons.logging (okay the last one is not just a string
> replace).
>
> Instead one could use adaptors that do the thing (I think there is one
> available for configuration) but now if you want to use a specific
> implementation of lets say c-configuration that allows also changing parts
> of the configuration, etc. you can not access those features across such an
> adaptor.
>
> So all I am suggesting is think about it.
> Disscussions welcome...
>
> Take care
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
--
homepage: http://www.j-hohwiller.de/joerg
fingerprint: http://www.j-hohwiller.de/joerg/data/fingerprint
public key: http://www.j-hohwiller.de/joerg/data/public_key.ascii
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: commons-configuration and commons-logging
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Tuesday 08 June 2004 05:21, Jörg Hohwiller wrote:
> > This results in the exposure of logging system
> > management apis to the client (which is not desirable).
>
> I have to admit that I do not understand this. What exactly do you mean
> with client here?
Client code can change the configuration of Log4J on its own. Against our IoC
principles.
Also, the client code is responsible to 'structure' the logging framework,
normally by passing the class of itself but could easily pass all kinds of
classes to Log4J. This is a highly undesireable situation.
Cheers
Niclas
--
+------//-------------------+
/ http://www.bali.ac /
/ http://niclas.hedhman.org /
+------//-------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: commons-configuration and commons-logging
Posted by Jörg Hohwiller <jo...@j-hohwiller.de>.
Hi Stephen,
thanks for your response.
On Sunday 06 June 2004 04:02, Stephen McConnell wrote:
> Jörg Hohwiller wrote:
> > On Friday 21 May 2004 17:12, Jörg Hohwiller wrote:
> >>Hi there,
> >>
> >>I am new to this list but have been using avalon + ECM in a project
> >> before and plan to use avalon + merlin for my current open-source
> >> project.
> >>
> >>I can see there is commons-configuration (which seems as it came from
> >>avalon) and commons-logging.
>
> I think commons configuration came from Turbine (but I'm not sure).
that's interesting...
>
> >>I saw in the archive that there was a
> >>discussion about logkit vs. commons-logging + log4j before.
> >>I would like to know if you are planning to directly use c-configuration
> >>and c-logging in the avalon framework API?
>
> No plans and I can't see it happening. The Framework api Logger and
> Configuration interfaces classes provide what is needed. However, you
> can still use commons-logging and commons-configuration as part of a
> component model by creating a lifecycle extension.
okay.
>
> >>I personally think the commons initiative is a great thing and I can
> >> still remember myself digging deep in apache projects sources to find a
> >> ready to use cache, pool or whatever implementation.
> >>Now why not just using these APIs as part of the avalon API?
>
> It would break the 4.X API with no tangible benefit - in fact it could
> be argued that the end-result would be less valuable as commons
> configuration and avalon configuration are very different animals.
I actually was too quick and did not look deep enough into
commons-configuration. You are right. It differs a lot.
>
> >>I can see that changing an API this way in general is a bad thing because
> >>of loosing downward compatibility but on the other hand it is not a bid
> >>thing to replace org.apache.avalon.framework.configuration to
> >>org.apache.commons.configuration and org.apache.avalon.framework.logger
> >>to org.apache.commons.logging (okay the last one is not just a string
> >>replace).
>
> Commons Logging is about providing an abstraction layer above one or
> more logging implementations. This is basically what the Avalon Logging
> system is doing. The difference between Avalon Logging and Common
> Logging is that Avalon Logging provides support for dynamically loaded
> logging strategies.
I just meant the APIs and I was thinking they are pretty much the same when I
wrote this mail.
>
> A second issue is that the commons logging implementation classes and
> API are not separated.
If you mean not safely separated into different java packages, yes.
> This results in the exposure of logging system
> management apis to the client (which is not desirable).
I have to admit that I do not understand this. What exactly do you mean with
client here?
>
> Cheers, Stephen.
>
> >>Instead one could use adaptors that do the thing (I think there is one
> >>available for configuration) but now if you want to use a specific
> >>implementation of lets say c-configuration that allows also changing
> >> parts of the configuration, etc. you can not access those features
> >> across such an adaptor.
> >>
> >>So all I am suggesting is think about it.
> >>Disscussions welcome...
> >>
> >>Take care
> >> Jörg
Regards
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: commons-configuration and commons-logging
Posted by Stephen McConnell <mc...@apache.org>.
Jörg Hohwiller wrote:
> On Friday 21 May 2004 17:12, Jörg Hohwiller wrote:
>
>>Hi there,
>>
>>I am new to this list but have been using avalon + ECM in a project before
>>and plan to use avalon + merlin for my current open-source project.
>>
>>I can see there is commons-configuration (which seems as it came from
>>avalon) and commons-logging.
I think commons configuration came from Turbine (but I'm not sure).
>>I saw in the archive that there was a
>>discussion about logkit vs. commons-logging + log4j before.
>>I would like to know if you are planning to directly use c-configuration
>>and c-logging in the avalon framework API?
No plans and I can't see it happening. The Framework api Logger and
Configuration interfaces classes provide what is needed. However, you
can still use commons-logging and commons-configuration as part of a
component model by creating a lifecycle extension.
>>I personally think the commons initiative is a great thing and I can still
>>remember myself digging deep in apache projects sources to find a ready to
>>use cache, pool or whatever implementation.
>>Now why not just using these APIs as part of the avalon API?
It would break the 4.X API with no tangible benefit - in fact it could
be argued that the end-result would be less valuable as commons
configuration and avalon configuration are very different animals.
>>I can see that changing an API this way in general is a bad thing because
>>of loosing downward compatibility but on the other hand it is not a bid
>>thing to replace org.apache.avalon.framework.configuration to
>>org.apache.commons.configuration and org.apache.avalon.framework.logger
>>to org.apache.commons.logging (okay the last one is not just a string
>>replace).
Commons Logging is about providing an abstraction layer above one or
more logging implementations. This is basically what the Avalon Logging
system is doing. The difference between Avalon Logging and Common
Logging is that Avalon Logging provides support for dynamically loaded
logging strategies.
A second issue is that the commons logging implementation classes and
API are not separated. This results in the exposure of logging system
management apis to the client (which is not desirable).
Cheers, Stephen.
>>
>>Instead one could use adaptors that do the thing (I think there is one
>>available for configuration) but now if you want to use a specific
>>implementation of lets say c-configuration that allows also changing parts
>>of the configuration, etc. you can not access those features across such an
>>adaptor.
>>
>>So all I am suggesting is think about it.
>>Disscussions welcome...
>>
>>Take care
>> Jörg
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
--
|---------------------------------------|
| Magic by Merlin |
| Production by Avalon |
| |
| http://avalon.apache.org |
|---------------------------------------|
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: commons-configuration and commons-logging
Posted by Jörg Hohwiller <jo...@j-hohwiller.de>.
Hi Niclas,
thanks for your response...
On Saturday 05 June 2004 09:40, Niclas Hedhman wrote:
> On Saturday 05 June 2004 05:31, Jörg Hohwiller wrote:
> > seems that this list is more interested on philosophy about spam and the
> > universe than disscussions about the philosophy of avalon - nice jokes
> > about that spam anyways but I would like to see some response to my mail
> > or is it misplaced here???
>
> Not at all... Somehow, I have missed your mail, possibly due to it was sent
> in the middle of the transition from CVS to Subversion....
> Also, postings that are very 'neutral' have a tendency of not getting
> responses, i.e. "ok, I read it, but nothing much to add or dispute..."
>
> Anyway...
>
> > On Friday 21 May 2004 17:12, Jörg Hohwiller wrote:
> > > I can see there is commons-configuration (which seems as it came from
> > > avalon) and commons-logging. I saw in the archive that there was a
> > > discussion about logkit vs. commons-logging + log4j before.
> > > I would like to know if you are planning to directly use
> > > c-configuration and c-logging in the avalon framework API?
>
> As for Merlin, the answer to this is "No, we are not.".
okay.
>
> In logging, I think we need a more powerful classloading mechanism than
> commons-logging can support, but I am not sure whether we can provide a
> plugin for commons-logging in Avalon Logging, but that seems to be "cake on
> cake".
I just meant the API what for me is nothing more than given an
org.apache.commons.logging.Log in Configurable instead of
org.apache.avalon.framework.logger.Logger
>
> I am not well versed in commons-configuration, and don't have any comments
> on why. It just hasn't been discussed.
>
> > > I personally think the commons initiative is a great thing and I can
> > > still remember myself digging deep in apache projects sources to find a
> > > ready to use cache, pool or whatever implementation.
> > > Now why not just using these APIs as part of the avalon API?
> > > I can see that changing an API this way in general is a bad thing
> > > because of loosing downward compatibility but on the other hand it is
> > > not a bid thing to replace org.apache.avalon.framework.configuration to
> > > org.apache.commons.configuration and org.apache.avalon.framework.logger
> > > to org.apache.commons.logging (okay the last one is not just a string
> > > replace).
>
> Well, being a framework, we have a fair amount of compatibility concerns,
> and replacements are out of the questions. Either a compatibility wrapper
> is provided or both are supported, and the component implementor makes a
> choice.
Of course I see your point.
>
> > > So all I am suggesting is think about it.
> > > Disscussions welcome...
>
> Change for the sake of change is not something I would typically spend my
> time on, and if no arguments are put forward of WHY a change should be
> done, I am sure it won't happen. What does the change bring to us (except
> increased maintenance)?
if "us" are the developers of avalon, jep! I only have the user perspective.
I do not know what the philosophy of the commons initiative is and am not
a "member" of the Apache Software Foundation. But I thought the idea would be
to avoid reinventing the wheel and having multiple implementations of the same
thing. Then if a commons library is improved everything else using it
benefits. For me this is like the Linux philosophy with the shell where there
are lots of little basic programms like grep, sort, etc. They all do their
job and they do it very well with all aspects of their scope. All together
makes a very powerful conglomerate.
Now what I see is that there are tons of logger and meta-loggers APIs and
implementations for java. Why not deciding for a single one.
The packaging namespaces of java starts to make a political impression on
me - maybe the smalltalk approach was better. Seems that I lost the toppic :)
So if you do not like to change maybe you could convince commons-* to use your
APIs instead ;)
>
> Cheers
> Niclas
Regards
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: commons-configuration and commons-logging
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Saturday 05 June 2004 05:31, Jörg Hohwiller wrote:
> seems that this list is more interested on philosophy about spam and the
> universe than disscussions about the philosophy of avalon - nice jokes
> about that spam anyways but I would like to see some response to my mail or
> is it misplaced here???
Not at all... Somehow, I have missed your mail, possibly due to it was sent in
the middle of the transition from CVS to Subversion....
Also, postings that are very 'neutral' have a tendency of not getting
responses, i.e. "ok, I read it, but nothing much to add or dispute..."
Anyway...
> On Friday 21 May 2004 17:12, Jörg Hohwiller wrote:
> > I can see there is commons-configuration (which seems as it came from
> > avalon) and commons-logging. I saw in the archive that there was a
> > discussion about logkit vs. commons-logging + log4j before.
> > I would like to know if you are planning to directly use c-configuration
> > and c-logging in the avalon framework API?
As for Merlin, the answer to this is "No, we are not.".
In logging, I think we need a more powerful classloading mechanism than
commons-logging can support, but I am not sure whether we can provide a
plugin for commons-logging in Avalon Logging, but that seems to be "cake on
cake".
I am not well versed in commons-configuration, and don't have any comments on
why. It just hasn't been discussed.
> > I personally think the commons initiative is a great thing and I can
> > still remember myself digging deep in apache projects sources to find a
> > ready to use cache, pool or whatever implementation.
> > Now why not just using these APIs as part of the avalon API?
> > I can see that changing an API this way in general is a bad thing because
> > of loosing downward compatibility but on the other hand it is not a bid
> > thing to replace org.apache.avalon.framework.configuration to
> > org.apache.commons.configuration and org.apache.avalon.framework.logger
> > to org.apache.commons.logging (okay the last one is not just a string
> > replace).
Well, being a framework, we have a fair amount of compatibility concerns, and
replacements are out of the questions. Either a compatibility wrapper is
provided or both are supported, and the component implementor makes a choice.
> > So all I am suggesting is think about it.
> > Disscussions welcome...
Change for the sake of change is not something I would typically spend my time
on, and if no arguments are put forward of WHY a change should be done, I am
sure it won't happen. What does the change bring to us (except increased
maintenance)?
Cheers
Niclas
--
+------//-------------------+
/ http://www.bali.ac /
/ http://niclas.hedhman.org /
+------//-------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org