In my everlasting quest to suck less I'm currently checking out mvc Turbine to do the IoC dirty work.
I'm using the mvc Turbine nerd dinner example as a lead and things look rather logical thus far.
Although I'm refering to the turbine project here, I'm guessing the philosophy behind it is something general to the pattern
Safe for some reading and the rare podcast, I am new to the IoC concept and I have a few questions.
So far I have a IServiceRegistration entry for each IRepository I want to register
For example:
public class UserRepositoryRegistration : IServiceRegistration
{
public void Register(IServiceLocator locator)
{
locator.Register<IUserRepository, UserRepository>();
}
}
The concrete implementation of the IUserRepository needs some configuration though. Something like a connection string or in this case a path to the db4o file to use.
Where and to who should I supply this information?