Class: DependencyTree

DependencyTree(objectManager, moduleResolver, identifier)

The dependency tree keeps track of module dependencies. You can see a dependency tree as some kind of dimension. Multiple instances of one module can exist concurrently in different trees. If you don't explicitly define the tree, a module should reside in, it will also be instantiated in the tree of the parent module.

Constructor

new DependencyTree(objectManager, moduleResolver, identifier)

Parameters:
Name Type Description
objectManager ObjectManager
moduleResolver ModuleResolver
identifier String

The identifier of this tree

Author:
  • Wolfgang Felbermeier (@f3lang)
Source:

Methods

getInstance(moduleName, requestId)

Returns an instance of the current tree

Parameters:
Name Type Description
moduleName string

The name of the module

requestId string

The unique request id to detect circular dependencies

Source: