NB: CommandExecutor and its injector will do the right mapping/injections inside the same instance.
var payload1 = new ExecutionPayload( new MockData<String>() ).withClassName( "hex.control.payload.MockData<String>" );
var payload2 = new ExecutionPayload( new MockData<Int>() ).withClassName( "hex.control.payload.MockData<Int>" );
@Inject public var p1 : MockData<String>;
@Inject public var p2 : MockData<Int>;
NB: CommandExecutor and its injector will do the right mapping/injections inside the same instance.