Creates a new Container
The container options
Optional
parent: ContainerSpecifies the parent. Should be provided using Container.addChild
Adds a child container to this container
The child container name
Options for child container
Adds a new namespace
The namespace name
Optional
func: CustomNamespaceIf provided, uses this object as a namespace resolver
Check Namespace.bind
Check Namespace.bind
The namespace to use
Returns a namespace, or undefined if the namespace is custom (e.g. invoked Container.addNamespace with second parameter)
The namespace to get
Check Namespace.rebind
Check Namespace.rebind
The namespace to use
Removes a custom namespace if the canBeRemoved function returns true or a native one if its not empty
The namespace to remove
Resolves an injection entry
An injection entry (e.g. "house:SmallHouse")
Optional
filter: FilterFilter passed to Namespace.resolve
Resolves an injection entry and returns an array
An injection entry (e.g. "house:SmallHouse")
Optional
filter: FilterFilter passed to Namespace.resolve
Optional
array: booleanIf true, this will resolve an array. The array size can be controlled using Filter.arrayMaxSize
Check Namespace.unbind
The namespace to use
A container manages a map of namespaces