Packagecom.lafabrick.reflex.model
Classpublic class ModelLocator

Registering and recovery of the various instances of model

NOTE: model BaseModel are automatically registered in ModelLocator.



Public Methods
 MethodDefined by
  
getModel(modelClass:Class):BaseModel
[static] Return this instance of target model
ModelLocator
  
[static] Registering a model in the dictionary
ModelLocator
  
unregisterModel(modelClass:Class):void
[static] Unregistering a Model in the dictionary
ModelLocator
Method detail
getModel()method
public static function getModel(modelClass:Class):BaseModel

Return this instance of target model

Parameters
modelClass:Class — Class corresponding to the target model

Returns
BaseModel — Object type BaseModel

See also

registerModel()method 
public static function registerModel(model:BaseModel):void

Registering a model in the dictionary

Parameters
model:BaseModel — instance of model to register
unregisterModel()method 
public static function unregisterModel(modelClass:Class):void

Unregistering a Model in the dictionary

Parameters
modelClass:Class — Class corresponding to the model to be removed from the dictionary