avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: LogKit Configurator
Date Sat, 11 Aug 2001 12:30:49 GMT
On Sat, 11 Aug 2001 20:16, giacomo wrote:
> > interface TargetFactory
> > {
> >   LogTarget createTarget( Configuration configuration );
> > }
>
> You're right. As I've mentioned above with "full Selector/Component
> specification" it clearly should be:
>
>  interface TargetFactory /* extends Configurable */
>  {
>    LogTarget createTarget();
>  }
>
> Concrete Factories will implement Configurable like normal Components
> will do.

I think I would prefer the Configuration to be passed in. That way each 
factory could be a fly-weight - ie only one instance ever created. That way 
even if we have 20 different file log targets we will still only have one 
FileTargetFactory etc. Thoughts?

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

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


Mime
View raw message