tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/8209-mapping-to-interface-without-singletonRobotlegs: Discussion 2013-11-19T11:30:11Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/300726432013-11-19T09:32:17Z2013-11-19T09:32:17ZMapping to Interface without singleton<div><p>Have you tried this?</p>
<p>injector.map(ISomeClass).toType(SomeClass);</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/300726432013-11-19T09:39:15Z2013-11-19T09:39:15ZMapping to Interface without singleton<div><p>injector.map(IClassA).toType(ClassA)</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/300726432013-11-19T09:40:32Z2013-11-19T09:40:32ZMapping to Interface without singleton<div><p>Ah Ondina beat me to it. Of course. :)</p></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/300726432013-11-19T10:05:44Z2013-11-19T10:05:44ZMapping to Interface without singleton<div><p>Yes,</p>
<p>just tried it, works brilliantly.</p>
<p>Cheers</p></div>matejtag:robotlegs.tenderapp.com,2009-10-18:Comment/300726432013-11-19T11:30:09Z2013-11-19T11:30:09ZMapping to Interface without singleton<div><p>@creynders My day starts earlier than yours:)</p>
<p>@matey great!</p></div>Ondina D.F.