tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/5-help-with-mapsingletonofRobotlegs: Discussion 2012-07-20T12:23:49Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/5327172009-11-03T00:50:55Z2009-11-03T00:50:58ZHelp with mapSingletonOf<div><p>Hey All,</p>
<p>Hope everyone is doing well. I started developing an app using
RL 0.9.6 (or somewhere around there) and decided to update to RC3
today. I also downloaded the source for SwiftSuspenders and linked
the code to RL (in my case, RL does not use the Swiftsuspenders.swc
RC2). I did this because I like to step through the code when
debugging.</p>
<p>My issue is as follows: I have 2 services that implement an
interface and I map them like so:
injector.mapSingletonOf(IDeviceService, GetMicrophone,
"IGetMicrophone");<br>
injector.mapSingletonOf(IDeviceService, GetCamera,
"IGetCamera");</p>
<p>I have 2 command classes, GetMicCommand, and GetCameraCommand
which have injection rules, [Inject(name="IGetMicrophone")] public
var service:IDeviceService; and [Inject(name="IGetCamera")] public
var<br>
service:IDeviceService, respectively.</p>
<p>For some reason the same class (GetCamera) gets injected into
both commands and I am not entirely sure why this is the case. I
apologize if this all sounds convoluted! Appreciate the help.</p></div>Carlostag:robotlegs.tenderapp.com,2009-10-18:Comment/5327172009-11-03T15:28:38Z2012-07-20T15:43:18ZHelp with mapSingletonOf<div><p>An internal ticket was created for this discussion</p></div>Systemtag:robotlegs.tenderapp.com,2009-10-18:Comment/5327172009-11-03T17:15:11Z2009-11-03T17:15:11ZHelp with mapSingletonOf<div><p>Problem is fixed on my branch, fix should be contained in the
next RC.</p></div>Till Schneidereit