Injector Warnings
This is not a big deal, just a slight annoyance, but I can't seem to get rid of these compiler warning. I am using Flashbuilder 4 and well, I don't know what version of Robotlegs (is there any way to tell?). I grabbed the source in April or May of this year. Anyhoo, I get these compiler warnings and I can't figure out why:
Warning: Injector already has a rule for type
"org.robotlegs.core::IReflector", named "". If you have overwritten
this mapping intentionally you can use "injector.unmap()" prior to
your replacement mapping in order to avoid seeing this message.
Warning: Injector already has a rule for type
"org.robotlegs.core::IInjector", named "". If you have overwritten
this mapping intentionally you can use "injector.unmap()" prior to
your replacement mapping in order to avoid seeing this message.
Warning: Injector already has a rule for type
"flash.events::IEventDispatcher", named "". If you have overwritten
this mapping intentionally you can use "injector.unmap()" prior to
your replacement mapping in order to avoid seeing this message.
Warning: Injector already has a rule for type
"flash.display::DisplayObjectContainer", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type "org.robotlegs.core::ICommandMap", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type "org.robotlegs.core::IMediatorMap", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type "org.robotlegs.core::IViewMap", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type "org.robotlegs.core::IEventMap", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type "org.robotlegs.core::ISignalCommandMap", named "". If you have
overwritten this mapping intentionally you can use
"injector.unmap()" prior to your replacement mapping in order to
avoid seeing this message. Warning: Injector already has a rule for
type
"com.bac.iotrainer.signals::EstablishUserProfileRequestedSignal",
named "". If you have overwritten this mapping intentionally you
can use "injector.unmap()" prior to your replacement mapping in
order to avoid seeing this message.
My Context looks like this (this is where I assume the problem arises):
`package com.bac.iotrainer {
import com.bac.iotrainer.commands.EstablishUserProfileCommand;
import com.bac.iotrainer.commands.EstablishUserProfileCompleteCommand;
import com.bac.iotrainer.commands.KeyingSessionReportCommand;
import com.bac.iotrainer.interfaces.IMainView;
import com.bac.iotrainer.mediators.KeyingPracticeViewMediator;
import com.bac.iotrainer.mediators.MainViewMediator;
import com.bac.iotrainer.model.ApplicationModel;
import com.bac.iotrainer.services.application.EstablishUserProfileService;
import com.bac.iotrainer.signals.CoreSiteVOValuesSetSignal;
import com.bac.iotrainer.signals.CoreUserVOValuesSetSignal;
import com.bac.iotrainer.signals.EstablishUserProfileCommandCompleteSignal;
import com.bac.iotrainer.signals.EstablishUserProfileCompleteSignal;
import com.bac.iotrainer.signals.EstablishUserProfileRequestedSignal;
import com.bac.iotrainer.signals.GetCoreUserVOValuesSignal;
import com.bac.iotrainer.signals.KeyingSessionReportSignal;
import com.bac.iotrainer.signals.UserFunctionalAreaVOValuesSetSignal;
import com.bac.iotrainer.signals.UserProfileRetrievedSignal;
import com.bac.iotrainer.view.MainView;
import com.bac.iotrainer.view.practicemodules.keyingpractice.KeyingPracticeView;
import org.osflash.signals.Signal;
import org.robotlegs.mvcs.SignalContext;
public class IOTrainerContext extends SignalContext
{
public var mainView:MainView;
override public function startup():void
{
injector.mapSingleton(ApplicationModel);
injector.mapSingleton(KeyingPracticeView);
injector.mapSingleton(EstablishUserProfileService);
injector.mapClass(EstablishUserProfileRequestedSignal, EstablishUserProfileRequestedSignal);
injector.mapClass(EstablishUserProfileCompleteSignal, EstablishUserProfileCompleteSignal);
injector.mapClass(GetCoreUserVOValuesSignal, GetCoreUserVOValuesSignal);
injector.mapClass(CoreUserVOValuesSetSignal, CoreUserVOValuesSetSignal);
injector.mapClass(CoreSiteVOValuesSetSignal, CoreSiteVOValuesSetSignal);
injector.mapClass(UserProfileRetrievedSignal, UserProfileRetrievedSignal);
injector.mapClass(UserFunctionalAreaVOValuesSetSignal, UserFunctionalAreaVOValuesSetSignal);
injector.mapClass(MainViewMediator, MainViewMediator);
injector.mapValue(IMainView, mainView);
signalCommandMap.mapSignalClass(EstablishUserProfileCommandCompleteSignal, EstablishUserProfileCompleteCommand);
signalCommandMap.mapSignalClass(EstablishUserProfileRequestedSignal, EstablishUserProfileCommand);
signalCommandMap.mapSignalClass(KeyingSessionReportSignal, KeyingSessionReportCommand);
mediatorMap.mapView(KeyingPracticeView, KeyingPracticeViewMediator);
mediatorMap.mapView(MainView, MainViewMediator);
}
}
}`
Notice anything that could be causing this?
Thanks,
Jason
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Stray on 06 Jun, 2011 03:46 PM
Hi Jason,
the warnings are because SS got updated and RL didn't (yet). Basically if you're using flex then you're running some of the setup on the context twice (because it's run again when contextView is set as a property) - and we haven't caught up with the best fix for it yet.
The warning is unimportant, but I can see that it's annoying.
I'll get on to that actually - was hoping to roll it in with another small update but we should get this sorted.
Stray
2 Posted by Stray on 06 Jun, 2011 03:46 PM
By the way - they're run time warnings from the SS injector, not from the compiler itself.
Stray
3 Posted by jason.merrill on 06 Jun, 2011 03:48 PM
Ah, ok I see. Feel a little better it wasn't just me. Thanks Stray! Keep up the good work.
Jason Merrill
Instructional Technology Architect
Bank of America Global Learning
_______________________
Stray closed this discussion on 07 Jun, 2011 01:22 PM.