PDA

View Full Version : Can I inject dependency coming from an IHttpModule?



Billy
03-02-2006, 10:36 PM
I have a custom IHttpModule that exposes a static property that is initialized upon BeginRequest. For example, I can access it from my code behind page with MyHttpModule.SomeValueSetUponBeginRequest.

Is it possible to inject MyHttpModule.SomeValueSetUponBeginRequest into my business objects using Spring's IoC? Furthermore, is it possible to use IoC to inject a dependency into the IHttpModule?

Thanks,
Billy

Aleks Seovic
03-06-2006, 06:42 PM
You can inject value of a static property into your objects using PropertyRetrievingFactoryObject.

Unfortunately, you cannoy use Spring to configure your HttpModule, as it is not managed by Spring.

- Aleks