thedevstop / asfac

A simple, fast IOC container for use in ActionScript projects
MIT License
0 stars 0 forks source link

Support registration with named scope #3

Closed JoeRobich closed 12 years ago

JoeRobich commented 12 years ago

1) Scope names are a String. 2) Default scope name is an empty string 3) If you resolve without specifying a scope, and there is a default scoped registration, it is returned. 4) If you resolve without specifying a scope, but you only have scoped registrations, any one of them will be returned. 5) If you attempt to resolve for a specific scope that has not been registered, an error is thrown. 6) Scope will be passed into registration callbacks i.e. function(factory:AsFactory, scopeName:String):Object 7) Property injection resolves property types with same scope name as type resolution

JoeRobich commented 12 years ago

Fluent interface now fully supports named scope my using the inScope and fromScope methods.