>From what I saw, this would probably impact dependency and service. A
solution could be as follows:
<service
type="blah.foo:1.0:role_hint" />
then on dependency
<dependency
role="blah.foo/my_role"
type="blah.foo:1.0:role_hint" />
This would allow a service to be dependent on a particular implementation of
a given service without a lot of
impact to the entire meta-data structure.
Additionally, I also have a question about embedding Merlin in a servlet.
Is there a way to embed it that does not require url's for service
resolution? We have some non-avalon objects
that use the services and i was wondering if there was an easier way to get
them to talk
Thanks,
Rodney Riven
> -----Original Message-----
[Riven, Rodney] Subject: Re: Merlin Roles
From: Stephen McConnell <[EMAIL PROTECTED]>
Reply-To: "Avalon framework users" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.avalon.user
Riven, Rodney wrote:
>Wouldn't this be easier to handle in the meta-data/meta-info that merlin
>collects?
>
Yes.
Basically we can easily inlude meta-data directives that select
components by name. The implementation of this would apply an internal
selector automatically. This is a feature that has been requested by a
couple of people - all that needs to be done is some thinking about the
meta-data declarations - because basically, what we would be declararing
would be selection constraints.
Cheers, Steve.
>
>Rodney
>
>Subject: Re: Merlin Roles
>From: Stephen McConnell <[EMAIL PROTECTED]>
>Reply-To: "Avalon framework users" <[EMAIL PROTECTED]>
>Newsgroups: gmane.comp.jakarta.avalon.user
>
>
>
>Riven, Rodney wrote:
>
>
>
>>Hi,
>>
>>I have a case where two components implement a service. Another service
is
>>dependent on both components through different roles. Right now merlin
only
>>applies one of the components to both roles. How do I configure them so
>>that each role is mapped to the correct component?
>>
>>
>>
>
>You can do this be declaring a profile selector.
>
>http://avalon.apache.org/sandbox/merlin/starting/advanced/selectors.html
>
>Cheers, Steve.
>
>
>
>
>>Rodney Riven
>>
>>
>>
>>
>>
>
>
>
--
Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
>
>