On Mon, 29 Oct 2001, Carsten Ziegeler wrote: > > Giacomo Pati wrote: > > > > On Sun, 28 Oct 2001, Ovidiu Predescu wrote: > > > > > Is it possible to create a Component which is a singleton? I can > > > implement the singleton myself but I was hoping to reuse an already > > > implemented pattern from Avalon. > > > > Let your Component implement the ThreadSave interface. > > > As far as I understand the last explainations from the Avalon developers, > ThreadSafe is not the same as Singleton. > Whereas Singleton means you really have only one instance in your system, > ThreadSafe is "only" a marker for the ComponentManager. He can create > only one instance - as it is thread safe - but it's not required. > > Carsten
Yes, you're right. There is nothing Avalon can support you in building real Singletons, I think. Giacomo > > > Giacomo > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]