You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Xiaowei Jiang <xi...@stratify.com> on 2002/05/17 03:56:36 UTC
lazy creation of thread safe components
Hi, the threadsafe components are created when the ExcaliburComponentManager
is initialized. This is sometimes wasteful when the components are actually
never used. You could argue that we should remove the configuration for such
components in the config file. However, it would be nice if we can introduce
ThreadSafeLazyActivateComponent interface, so that we will use lazy
activation for such components.
Another issue is the design of the excalibur's component package maximally
violated the Inversion-Of-Control principle. Try to add support for
ThreadSafeLazyActivateComponent without copying the source code, you will
understand.
-xiaowei
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: lazy creation of thread safe components
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
On Thu, May 16, 2002 at 06:56:36PM -0700, Xiaowei Jiang wrote:
> Hi, the threadsafe components are created when the ExcaliburComponentManager
> is initialized. This is sometimes wasteful when the components are actually
> never used. You could argue that we should remove the configuration for such
> components in the config file. However, it would be nice if we can introduce
> ThreadSafeLazyActivateComponent interface, so that we will use lazy
> activation for such components.
>
> Another issue is the design of the excalibur's component package maximally
> violated the Inversion-Of-Control principle. Try to add support for
> ThreadSafeLazyActivateComponent without copying the source code, you will
> understand.
One option is to take a look at Fortress. It allows you to specify the
handler you would like to use in the roles file alongside
particular component definitions.
This would allow you to write a ThreadSafeLazyActivationHandler or
similar. Hope this helps.
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: ManageSoft GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&'
&&&&.
&&&&&&&:
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>