Class Archetype.ComponentManager
Archetype.Component manager. Sets up components, load their dependencies, etc.
Should only be used through the convenient "Archetype.Component." wrappers
Defined in: componentManager.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
componentsDependenciesLoaded(componentDefinition, setupJoiner)
Called when all component's components dependancies are available.
|
|
|
Setup Archetype.Component Management configuration
|
|
|
loadComponent(module)
Initialize the component definition.
|
|
|
prototypizeComponent(componentDefinition)
Generate a component constructor from definition
|
|
|
startComponent(componentDefinition, options)
Called when all component's dependencies are available
Create the component and return the corresponding object
Run new component instance
|
|
|
templatesDependenciesLoaded(componentDefinition, setupJoiner, param1, param2)
Called when all component's templates dependancies are available.
|
Method Detail
componentsDependenciesLoaded(componentDefinition, setupJoiner)
Called when all component's components dependancies are available.
Add a HashMap with components constructors in the options of the joiner in order to adding them in the new component definition.
- Parameters:
- {HashMap} componentDefinition
- {Archetype.Joiner} setupJoiner
initialize()
Setup Archetype.Component Management configuration
loadComponent(module)
Initialize the component definition.
Launch the loading of dependencies.
- Parameters:
- {String} module
prototypizeComponent(componentDefinition)
Generate a component constructor from definition
- Parameters:
- {Object} componentDefinition
startComponent(componentDefinition, options)
Called when all component's dependencies are available
Create the component and return the corresponding object
Run new component instance
- Parameters:
- {HashMap} componentDefinition
- {HashMap} options
- options from the joiner, contain hashmaps for components and templates dependencies
templatesDependenciesLoaded(componentDefinition, setupJoiner, param1, param2)
Called when all component's templates dependancies are available.
Add a HashMap with templates in the options of the joiner in order to adding them in the new component definition.
- Parameters:
- {HashMap} componentDefinition
- {Archetype.Joiner} setupJoiner
- param1
- param2