Packagecom.lafabrick.reflex.controller
Classpublic class ControllerLocator

Registering and recovery of the various instances of controller

NOTE: controller BaseController are automatically registered in ControllerLocator.



Public Methods
 MethodDefined by
  
getController(controllerClass:Class):BaseController
[static] Return this instance of target controller
ControllerLocator
  
[static] Registering a controller in the dictionary
ControllerLocator
  
unregisterController(controllerClass:Class):void
[static] Unregistering a controller in the dictionary
ControllerLocator
Method detail
getController()method
public static function getController(controllerClass:Class):BaseController

Return this instance of target controller

Parameters
controllerClass:Class — Class corresponding to the target controller

Returns
BaseController — Object type BaseController

See also

com.lafabrick.reflex.model.BaseController
registerController()method 
public static function registerController(controller:BaseController):void

Registering a controller in the dictionary

Parameters
controller:BaseController — instance of controller to register
unregisterController()method 
public static function unregisterController(controllerClass:Class):void

Unregistering a controller in the dictionary

Parameters
controllerClass:Class — Class corresponding to the controller to be removed from the dictionary