At 03:00 PM 6/12/2002 +0200, you wrote:

>><component role="org.ziegeler.CarstensComponent"
>>           class="Avalon4Factory"
>>           avalon-4-class="org.ziegeler.CarstensA4Component"
>>           pool-min="2"
>>           pool-max="4"/>
>
>Leo:
>
>Any chance I can get you to translate this into an equivalent xinfo 
>component/block defintion ? I'm not familiar with Excalibur component defs 
>and the role together with class and attribites is thowing me (i'm use to 
>the .xinfo roles on the consumer's dependency declation and class by 
><classname>.xinfo).


There is no direct equivelent. Role ~= Service, avalon-4-class == <classname>

org/ziegeler/CarstensA4Component.xinfo:
<blockinfo>
  <block>...</block>
  <services><service name="org.ziegeler.CarstensComponent"/></services>
</blockinfo>

However the component is accessed via a factory, so in phoenix terms each 
block who depends on this block would get a new instance of the component 
from pool and the pool would use objectFactory Avalon4Factory. The pool 
would have min of 2 items and max of 4 (however this irrelevent in phoenix 
as they are never released till end of components lifecycle).


Cheers,

Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
              - John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to