| Package | org.servebox.foundry.model |
| Class | public class ModelLocator |
| Property | Defined by | ||
|---|---|---|---|
| logger : ILogger [static]
The class logger.
| ModelLocator | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new ModelLocator object.
| ModelLocator | ||
|
[static]
Returns the isntace of the instace of the ModelLocator.
| ModelLocator | ||
|
getModel(id:String):AbstractModel
Gets a reference to a model with an id
| ModelLocator | ||
|
registerModel(id:String, model:AbstractModel):void
Registers a reference to the model with an id
| ModelLocator | ||
| logger | property |
protected static var logger:ILoggerThe class logger.
| ModelLocator | () | constructor |
public function ModelLocator()Creates a new ModelLocator object.
| getInstance | () | method |
public static function getInstance():ModelLocatorReturns the isntace of the instace of the ModelLocator.
ReturnsModelLocator |
| getModel | () | method |
public function getModel(id:String):AbstractModelGets a reference to a model with an id
Parametersid:String — give the id of the required model
|
AbstractModel |
| registerModel | () | method |
public function registerModel(id:String, model:AbstractModel):voidRegisters a reference to the model with an id
Parametersid:String — give an id to the model
|
|
model:AbstractModel — instance of the model
|