commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Scott Stevens <...@latchkey.com>
Subject Re: cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging/impl LogFactoryImpl.java
Date Wed, 13 Feb 2002 21:52:38 GMT
on 2/12/02 6:18 PM, "craigmcc@apache.org" <craigmcc@apache.org> wrote:

>   Log log = LogFactory.newFactory().getInstance("foo");

Why not have:

public class LogFactory
{
    public Log getInstance(String foo)
    {
        return newFactory().getInstance(foo);
    }
}

Then all you need to do is:

   Log log = LogFactory.getInstance("foo");

Seems cleaner 2 me.

-jon


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message