commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Scott Stevens <...@latchkey.com>
Subject Re: [logging] Need interface...
Date Wed, 03 Apr 2002 18:12:16 GMT
on 4/3/02 10:09 AM, "Jon Scott Stevens" <jon@latchkey.com> wrote:

> Now, if the parent instantiates MyComponent and forgets to call
> enableLogging() *before* myMethod() is called, an NPE will be thrown and it
> will not be clear as to why that NPE was thrown unless you go and look at
> the source code. There is no open coding contract that says that
> enableLogging() needs to be called first.

I should also add that I don't like the fact that a parent is required.

If a parent is required, then it requires a framework to support the
children (ie: that is what a parent really is).

Sure, sometimes frameworks are appropriate, but I don't think they are
necessary for Velocity tools which are just objects stuck in the context...

-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