abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Ancona <...@anconafamily.com>
Subject Re: Making a Provider a Resolver
Date Wed, 09 Jan 2008 18:38:15 GMT
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

Mime
View raw message