On 4/3/02 11:19 AM, "Paul Hammant" <[EMAIL PROTECTED]> wrote:
> Costin,
>
>>> What we need is a marker interface that indicates a tool wants a logger, and
>>> of course a method to give it the logger... I did a quick scan of the
>>> public API, and there doesn't seem to be one.
>>>
>>> So what I propose is to add an interface 'LogUser' or something like it (we
>>> can quibble about the name...)
>>>
>>> public interface LogUser
>>> {
>>> public void setCommonsLogger(Log log)
>>> }
>>>
>>
>> In other words, you also want a 'push' model for the logger. Curently each
>> component is supposed to 'pull' the logger.
>>
> Not wishing to be political, just to furnish you with info, the 'push'
> model is described as 'Inversion of Control' -->
>
> http://jakarta.apache.org/avalon/framework/inversion-of-control.html
>
I knew that's what the Avalon-ers call it, and that's where the idea came
from, but I didn't want to stir that up...
:)
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
The obvious solutions are challenging
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>