DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

Payload with class name to handle generics at runtime #168

Closed FrancisBourre closed 8 years ago

FrancisBourre commented 8 years ago

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>;