you do not instantiate types, you instantiate instances of that type.
anyhoo, you don't need windsor for that.
var types = from t in Assembly.GetTypes()
where t.GetInterfaces().Contains(typeof(IWhatever))
select t;
var instances = types.ToList().ForEach(t=>Activator.CreateInstance(t));
now, assuming you had all of these registered in Windsor as implementations
for the said types, you could have
var instances = container.ResolveAll(IWhatever);
On Thu, Nov 26, 2009 at 6:02 PM, ABadylin-hill30 <[email protected]>wrote:
> I need to extract from a dll all the types implementing specific
> interface and instantiate them. Is it possible to do this using
> Windsor container?
>
> --
>
> 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]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>
>
--
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.idcc.co.il - הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם
--
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.