AllTypes.Of<IPlugin> The second one, ISubdependencyResolver
Something like this one http://www.tunatoksoz.com/post/Castle-ServiceIdResolver.aspx <http://www.tunatoksoz.com/post/Castle-ServiceIdResolver.aspx>or perhaps you may want to have a reference to IKernel as you may have plugins dynamically added in anytime of application lifetime. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Mon, Aug 3, 2009 at 4:07 AM, Yannis <[email protected]> wrote: > > Hi all, > > I have a set of plugins in my application all implementing IPlugin. > The plugins are in different assemblies. > > Currently I define each plugin in my config file. Is there any way to > do this through the fluent interface? > > Also, assuming that all plugins are registered correcty, I have a > class that serves as the plugin broker where consumers can go and say > please give me the plugin for the given ID. In that class there is a > dictionary holding all plugin implementations (map from plugin string > id to IPlugin) > > Is there any way to auto-wire this dependency withough having to let > castle manage this class (and register the dependency manually)? > > thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
