> public class AbstractLoggable{
>
> protected Logger getLogger(){
> }
>}
and how am I supposed to use this class? According to the name "Loggable", a
class willing to use a logger should extend the AbstractLoggable class, right?
As a big OO fan, I can see the advantage of this approach, but AFAIK Java only
supports single extension. Should I work with mock objects in classes that
already extend a base class?
Last question: why should we need this solution when the current one:
- works fine (and nobody cares as long as it works)
- is used by tons of other projects
- is recommended by the Commons-Logging folks
-Vladimir
--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice