avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@apache.org>
Subject RE: BlockInfo question
Date Thu, 14 Mar 2002 11:22:13 GMT


> -----Original Message-----
> From: Kevin Smith [mailto:kevin@electricanvil.com]
> 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:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


Mime
View raw message