Ahhhh. Makes sense now. My original thinking was that the <provide> tag 
indicated what service the block provided. Thanks for clarifying.

--Kevin
On Thursday 14 March 2002 06:22 am, you wrote:
> > -----Original Message-----
> > From: Kevin Smith [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 14 March, 2002 12:12
> > To: Avalon-Phoenix Developers List
> > Subject: Re: BlockInfo question
> >
> >
> > This is where I think I'm confused. Is a <provide> tag the
> > equivalent of a <dependency> tag?
>
> Related.  The provide tag basically says "provide the dependency
> declared in the .xinfo under the role "DEPENDENCY-ROLE-TAG" as a
> service using the lookup name "MY-KEY".
>
>   // from assembly.xml
>
>     <block class="MyBlock" name="myBlock" >
>         <provide name="MY-KEY" role="DEPENDENCY-ROLE-TAG"/>
>     </block>
>
>   // from .xinfo
>
>     <dependencies>
>       <dependency>
>           <role>DEPENDENCY-ROLE_TAG</role>
>           <service name="myService" version="1.0"/>
>       </dependency>
>     </dependencies>
>
> Cheers, Steve.

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

Reply via email to