logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: [POLL] Component and ComponentBase
Date Thu, 06 Jan 2005 22:15:24 GMT
At 11:02 PM 1/6/2005, Curt Arnold wrote:

>Would like Appender and other existing interfaces to NOT extend 
>LoggerRepositoryAware.
>
>I'd still like to see LoggerRepositoryAware disappear in favor of passing 
>in the LoggerRepository in the constructor, but would not do that just at 
>this moment.

This reminds me of "Forms Of Dependency Injection"

http://www.martinfowler.com/articles/injection.html#FormsOfDependencyInjection


>The implementation of setLoggerRepository should allow multiple calls as 
>long as the repository doesn't change.  That is:
>
>-if (this.repository == null)
>+if(this.repository == null || this.repository == repository)

Very good point.


-- 
Ceki Gülcü

   The complete log4j manual: http://www.qos.ch/log4j/



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message