You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Alexis Agahi <al...@users.sf.net> on 2003/08/22 16:54:22 UTC
AMTAGS @avalon.component lifestyle="singleton"
Hi,
I'm a little bit confused when using (Avalon/Merlin) component lifestyle.
Is it still necessary to have a component implementing
'ThreadSafe' when using
@avalon.component lifestyle="singleton"
declaration?
Same for 'SingleThreaded' & lifestyle="thread" etc.
Is there any differences?
What is the best practice?
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: AMTAGS @avalon.component lifestyle="singleton"
Posted by Stephen McConnell <mc...@apache.org>.
Alexis Agahi wrote:
>Hi,
>
>I'm a little bit confused when using (Avalon/Merlin) component lifestyle.
>
>Is it still necessary to have a component implementing
>'ThreadSafe' when using
>@avalon.component lifestyle="singleton"
>declaration?
>
>Same for 'SingleThreaded' & lifestyle="thread" etc.
>
>Is there any differences?
>What is the best practice?
>
Tag to meta-info generation does does not currently look for
implementation of ThreadSafe or or other lifestyle marker interfaces.
I.e. the lifestyle attribute applies. It could be feasible to add some
fallback processing if the lifestyle attribute is undefined - I think
Berin did some handling of this sort of thing under the Fortress tag
handler.
Stephen.
>
>Regards
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>
>
>
--
Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: AMTAGS @avalon.component lifestyle="singleton"
Posted by Berin Loritsch <bl...@apache.org>.
Alexis Agahi wrote:
> Hi,
>
> I'm a little bit confused when using (Avalon/Merlin) component lifestyle.
>
> Is it still necessary to have a component implementing
> 'ThreadSafe' when using
> @avalon.component lifestyle="singleton"
> declaration?
>
> Same for 'SingleThreaded' & lifestyle="thread" etc.
No. In containers that can read the @avalon.component declaration the
interface is generally ignored.
>
> Is there any differences?
The ThreadSafe interface is only needed for the ECM which is deprecated.
> What is the best practice?
Go with just the meta-info.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org