cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject RE: Singleton Component?
Date Mon, 29 Oct 2001 08:08:53 GMT
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: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message