avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Krieg" <dkr...@kc.rr.com>
Subject Re: .xinfo dependencies
Date Thu, 07 Nov 2002 17:15:17 GMT
>> Due to a lack of documentation regarding the BlockInfo file, I
>> apologetically post this question. If I declare the following dependency
in
>> .xinfo...
>>
>> <dependency>
>>
>>
<role>org.apache.avalon.cornerstone.services.http.channels.Processor/Http11
>></role> <service
>> name="org.apache.avalon.cornerstone.services.http.channels.Processor"/>
>> </dependency>
>>
>> would I then locate this component from ServiceManager as follows?
>>
>> processor = (Processor) m_serviceManager.lookup(Processor.ROLE +
>> "/Http11");
>
>If Processor.ROLE was equal to either;
>
>* "org.apache.avalon.cornerstone.services.http.channels.Processor"
>* Processor.class.getName()
Yes.  Then to followup, what is the relationship between .xinfo role and the
<provide> in assembly.xml?
Could I not simply drop the role from .xinfo because could I not do the
following?

<block class="...Http11Processor" name="processor-11"/>
<block class="...Http10Processor" name="processor-10"/>

<block class="...Http11Protocol" name="http">
        <provide role="...Processor/Http11" name="processor-11"/>
        <provide role="...Processor/Http10" name="processor-10"/>
</block>

...thus providing two Processor implementations by role?


--
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