Possible bug with object factory methods that take arguments

1 view
Skip to first unread message

gnash

unread,
Jan 5, 2010, 4:16:55 PM1/5/10
to spring-recoil-main
Details can be found here:
http://code.google.com/r/grahammnash-changes/source/browse/Recoil.Tests/WiringTests.cs

public class TestContainer : WiringContainer
{
public override void SetupContainer()
{
Define<ClassOneFactory>();
Define(() => Wire<ClassOneFactory>().Creator(1, 2,
"asdf"));
Define<ClassTwo>().AutoWire(AutoWiringMode.Constructor);
}
}

The above code fails to create ClassTwo as ClassTwo requires a
ClassOne created by ClassOneFactory. The equivalent using an
XmlApplicationContext works.

Am I using the Spring-Recoil API incorrectly or is this a bug?

Thanks,

Graham

Reply all
Reply to author
Forward
0 new messages