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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]