mixinafIoc::ScopeBuilder

afIoc::ScopeBuilder

@Js

Use to define an IoC scope.

scopeBuilder := regBuilder.addScope("thread")
scopeBuilder.withAlias("request")

Or inline:

regBuilder.addScope("thread").withAlias("request")
addAlias

Source

abstract This addAlias(Str serviceAlias)

Add an alias. An alias is a different ID the Scope may also be known by.

reg := regBuilder.addScope("thread").withAlias("request").build

reg.rootScope.createChild("thread") { ... }

reg.rootScope.createChild("request") { ... }