On Thu, Jul 18, 2002 at 02:04:32PM -0400, Berin Loritsch wrote: > > From: Stephen McConnell [mailto:[EMAIL PROTECTED]] > > > > Berin Loritsch wrote: > > > > >>From: Marcus Crafter [mailto:[EMAIL PROTECTED]] > > >>> > > >> Ok. Where should we specify such a line ? in the roles > > >>file on the > > >> root element ? per component along with the handler definition ? > > >> or in the xconf file with the handler definition ? > > >> > > >> Thoughts ? > > > > > >Per the container. > > > > > > > Disagree. > > It is totally reasonable to declar thias at the component > > profile level. Why should this be generalized to the > > container level? Steve. > > How would you handle this sort of thing in Merlin? It is something > that you would find in the component descriptor, or in the > configuration. > Right now, we have it set up so that the decision for async > initialization > is done per component. However, it is easy enough to change to per > component. I would still advocate the attribute to be applied to the > container as a default if no init policy is selected on the > per-component > level.
This would be good. Have a 'default' initialization policy at the container level, which is used if component level policy declarations are not specified. ie. something like: app.xconf: <app default-init-policy="startup"> // component configuration </app> app.roles: <role name="org.apache.excalibur.fortress.examples.components.Translator"> <component shorthand="translator" class="org.apache.excalibur.fortress.examples.components.TranslatorImpl" handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/> init-policy="lazy" </role> where init-policy can be: first-use/lazy - indicating component handler initialization done on first access (ie. lazy). startup - indicating component handler init is done during container startup. How does that sound ? any better names ? Cheers, Marcus -- ..... ,,$$$$$$$$$, Marcus Crafter ;$' '$$$$: Computer Systems Engineer $: $$$$: ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$, _/\ &&:' 60327 Frankfurt Germany ' /( &&& \_&&&&' &&&&. &&&&&&&: -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>