>> > How can I implement with Avalon such singelton classes?
>>
>> You can't.
>>
>> While you can implement the ThreadSafe interface, there is nothing it its
>> contract that requires the component manager to make it a singleton.
>
>This is taken from a private mail by Berin (hope that's ok, Berin):
>
>|The semantics used by the Avalon Excalibur Component package (which is
>|what Cocoon uses) state that only one ThreadSafe Component is created
>|and all lookups for the Component return a shared instance.
>
>So I was thinking this means
>
> ThreadSafe = only ONE instance
That's not the problem. When two Components looking up one Component, the
looked up Component is configured twice. I'm creating a Thread in the configure
method of this component. And this Thread is created twice. So I've to check if this
thread already exists or something else. I don't know...
Cheers
Gerhard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]