registry

registry

new registry()

Source:
Author:
  • jyoung@vecna.com
See:

Registry of instantiated Torso objects

Extends

Members

cells :Object.<string, Cell>

Source:

The registered cells keyed by their unique cid.

Type:
  • Object.<string, Cell>

cidPrefix :string

Source:

The prefix to use for this object's cid.

Type:
  • string

models :Object.<string, Model>

Source:

The registered models keyed by their unique cid.

Type:

services :Object.<string, ServiceCell>

Source:

The registered services keyed by their unique cid.

Type:

views :Object.<string, View>

Source:

The registered views keyed by their unique cid.

Type:
  • Object.<string, View>

Methods

cellInitialized(cell)

Source:

Add the cell to the cell cache when it is initialized.

Parameters:
Name Type Description
cell Torso.Cell

the cell to add to the cells cache.

disposeAll()

Source:

Dispose of all items in all of the caches (Models, Cells, Services and Views).

disposeAllCells()

Source:

Dispose of all items in the Cells cache.

disposeAllModels()

Source:

Dispose of all items in the Models cache.

disposeAllServices()

Source:

Dispose of all items in the Services cache.

disposeAllViews()

Source:

Dispose of all items in the Views cache.

modelInitialized(model)

Source:

Add the model to the model cache when it is initialized.

Parameters:
Name Type Description
model Torso.Model

the model to add to the models cache.

serviceInitialized(service)

Source:

Add the service to the model service when it is initialized.

Parameters:
Name Type Description
service Torso.ServiceCell

the service to add to the services cache.

viewInitialized(view)

Source:

Add the view to the view cache when it is initialized.

Parameters:
Name Type Description
view Torso.View

the view to add to the views cache.