alebianco / robotlegs-utilities-macrobot

Macro command utility for Robotlegs which provides the ability to execute batches of commands in sequential or parallel fashion.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using different injectors for each subcommand

greenled opened this issue · comments

Hi. Is there a way to use an injector for each subcommand different from the current context injector?

For each sub command it doesn't seem to be possible out of the box. One injector per macro is not a problem since the injector is injected inside the macro, you can remap the injector before and then manually trigger the macro.

I finally end up modifying macrobot to support custom injectors per sub command. Looks like add(Action).withInjector(IInjector); Will clean the code and share it later.