* Creates an instance of FrameworkConfiguration. * @param aurelia An instance of Aurelia.
(aurelia: Aurelia)
| 202 | * @param aurelia An instance of Aurelia. |
| 203 | */ |
| 204 | constructor(aurelia: Aurelia) { |
| 205 | this.aurelia = aurelia; |
| 206 | this.container = aurelia.container; |
| 207 | this.info = []; |
| 208 | this.processed = false; |
| 209 | this.preTasks = []; |
| 210 | this.postTasks = []; |
| 211 | /** |
| 212 | * Custom element's metadata queue for loading view factory |
| 213 | * @type {HtmlBehaviorResource[]} |
| 214 | */ |
| 215 | this.behaviorsToLoad = []; |
| 216 | /** |
| 217 | * Plugin configure functions temporary cache for avoid duplicate calls |
| 218 | * @type {Function[]} |
| 219 | */ |
| 220 | this.configuredPlugins = []; |
| 221 | this.resourcesToLoad = {}; |
| 222 | this.preTask(() => aurelia.loader.normalize('aurelia-bootstrapper', undefined) |
| 223 | .then(name => this.bootstrapperName = name)); |
| 224 | this.postTask(() => loadResources(aurelia, this.resourcesToLoad, aurelia.resources)); |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * Adds an existing object to the framework's dependency injection container. |
nothing calls this directly
no test coverage detected