Log in | Jump |

jhollingworth

a blog about my life (twitter.com/jhollingworth)
This thing was constructed on January 2, 2009, and it was categorized as fluentioc.
You can follow comments through the RSS 2.0 feed. You can leave a comment, or trackback.

A major problem I’ve found at huddle was what a pain in the arse configuring IoC using xml is! So instead of moaning about it I decided to write a new library called FluentIoC to make my life a bit easier.

The main aim’s of the project were

  • Not use any xml
  • Make it easy to configure and use IoC
  • Easy to register multiple services & components
  • Trying to keep DRY

Here is a quick example of how to quickly get up and running


IoC.Configure(c =>

c.Register<IBar>()
.ImplementedBy<Bar>()
.SetProperty(b => b.Message = "Lamda's rocks!")
.UsingFactory<BarFactory>(f => f.CreateBar()),

c.RegisterAssembly("Project.Services")
.ImplementedBy("Project.Components")
);

IoC.Resolve<IFoo>();

I have just completed my third re-write of it and I think it’s finally ready for other developers to have a look at. We are currently using it in production so the code is pretty stable but I’m still going to call it a beta for a little while.

It currently uses Castle’s Windsor but I have wrapped everything Windsor specifc behind interfaces so it shouldn’t be too much extra work to get it working with Spring.Net or any of the other .NET IoC frameworks.

You can get the code from the project home, which also contains all the documentation. Let me know what you think (my favorite type of feedback is checkin’s! ;))

This thing was constructed by .


You can follow comments through the RSS 2.0 feed. You can leave a comment, or trackback.

One Comment

  1. Chris
    Posted March 18, 2009 at 9:02 pm | Permalink

    Hi James,
    I read about your dissertation on http://jhollingworth.wordpress.com/2008/05/26/muney-organizing-a-users-financial-information/. I spent a good deal of time reading your actual dissertation and I am impressed. You presented quite a few great ideas about simplifying the process of managing one’s money. What lead me to your blog was my searching for an OFX importer. I am working on a project that requires that I import OFX files. I am hoping to ask you a few questions; can you email me at chrisrussi AT gmail.com?

    Best regards,
    Chris Russi

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*