all groups > c# > november 2007 >
You're in the

c#

group:

injection into Activator.CreateInstance ???


injection into Activator.CreateInstance ??? nguyen.panther@gmail.com
11/27/2007 11:59:22 PM
c#:
Hi,
Are there any solution for me to perform dependency injection in
Activator.CreateInstance(myType) ???
Re: injection into Activator.CreateInstance ??? Marc Gravell
11/28/2007 12:34:57 AM
What is currently happening? What *exactly* are you trying to solve?
It /sounds/ like you might be looking for AppDomain.TypeResolve or
AppDomain.AssemblyResolve...

Re: injection into Activator.CreateInstance ??? honguyen
11/28/2007 5:32:21 PM
My web project using ObjectDataSource that create Business Logic
Controller class in my BLL proj, I have a ControllerContainer class
for retrieving existed controller in cache or adding new one to cache.
I want to perform injection like the TypeDescriptor and
TypeDescriptionProvider perform.
But it don't work with this case. I tried reflection to explore
objectdatasource 's code, and i finded out that it used
Activator.CreateInstance.
Re: injection into Activator.CreateInstance ??? Arne_Vajhøj
11/29/2007 8:24:24 PM
[quoted text, click to view]

If you want dependency ibjection the gold plated way, then
look at http://www.springframework.net/ !

AddThis Social Bookmark Button