Closed JoeRobich closed 8 years ago
First spike of the functionality. Looking for comment. Still need to write tests.
Added minimal tests around new functionality.
Seems legit. I don't have an ActionScript environment right now, so I won't be pulling this and running the tests, etc. If the tests are passing and it enables your use case, merge at will =)
Problem:
I have multiple types of
ITask
that I would like to register with the factory and retrieve all at once later when displaying them to the user.Suggestion:
Multi-register types for an interface
Since we make multiple registrations for a type by changing scope, provide a method for resolving a type from all scopes. Make it easy to create these registrations in the Fluent interface by adding a
forType
to complementasType
.forType
will set the scope name based on the registered instance.