abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <dan.diepho...@mulesource.com>
Subject Re: Making a Provider a Resolver
Date Fri, 11 Jan 2008 17:59:44 GMT
Jim Ancona wrote:
> Dan Diephouse wrote:
>> I was wondering: does anyone see a clean way to auto-detect that a 
>> Provider also implements Resolver and use it automatically instead of 
>> having the user specify both?
>
> How about if ServiceProvider implemented ItemManager<Provider> in 
> addition to Provider (i.e. acted as its own Manager)? The 
> ServiceContext could then use reflection to detect that one object 
> implements both Resolver<Target> and ItemManager<Provider> and use it 
> for both purposes.
>
> Jim
This could work. I'll give this a whirl next week I think. Thanks!

- Dan

-- 
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog


Mime
View raw message