This commit is contained in:
eeichinger
2009-10-15 18:14:47 +00:00
parent 5c3a40204b
commit 4890f7f580

View File

@@ -63,7 +63,7 @@ namespace Spring.Objects.Factory.Config
MockObjectFactoryPostProcessor mofp = new MockObjectFactoryPostProcessor();
IConfigurableApplicationContext ctx = new XmlApplicationContext(false, "name", false, null);
ctx.AddObjectFactoryPostProcessor(new DelegateObjectFactoryConfigurer(of =>
ctx.AddObjectFactoryPostProcessor(new DelegateObjectFactoryConfigurer(delegate(IConfigurableListableObjectFactory of)
{
of.RegisterSingleton("mofp", mofp);
}));