Thank you, Stephen. I got the think running correctly now. To summarize and
double check my understanding:

>> Where do I indicate/configure the implementation to use for the 
>> service?

> Generally speaking you do not need to do anything.  What Merlin does
> to locate a provider is:
> 
>    1. scan the jar files in the container classloader and register
>       the component types and the services they provide
>    2. creates deployment profiles
>        a) because you were explicit by declaring a
>           <component> in the block
>        b) automatically via a profile packaged with a component
>           type
>        c) implicitly
>    3. candidate selection
>
> But you can override the above by declared an explicit provider. There 
> is an example of this in the following:
>
> http://avalon.apache.org/merlin/starting/tutorial/dependencies/manual.html

I think there is another element necessary to make the picture complete: 

<container name="resource-manager">
    ...
    <services>
        <service type="ch.xmatrix.resource.ResourceManager">
            <source>facade</source>
        </service>
    </services>
    <component name="facade" 
      class="ch.xmatrix.resource.HierarchialResourceManagerFacade"/>
</container>

If I get it right, that's the location where the implementation for the
service is specified.

>> * @avalon.service type="ch.xmatrix.resource.ResourceManager:1.0.0"
> * @avalon.service type="ch.xmatrix.resource.ResourceManager" version="1.0"

Another thing confuses: Are the above two lines equivalent?

Thanks a lot for the help and your time
Daniel


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

Reply via email to