Packagemvcexpress.mvc
Classpublic class Proxy
InheritanceProxy Inheritance Object

Proxy holds and manages application data, implements API to work with it.

Can send messages strings. (to tell about data updates)



Protected Properties
 PropertyDefined By
  isReady : Boolean
[read-only] Indicates if proxy is ready for usage.
Proxy
  proxyMap : IProxyMap
Interface to work with proxies.
Proxy
Public Methods
 MethodDefined By
  
CONSTRUCTOR
Proxy
Protected Methods
 MethodDefined By
  
onRegister():void
Then proxy is created, mapped with proxyMap, and all dependencies injected making proxy ready - this function is called.
Proxy
  
onRemove():void
Then proxy is unmapped with proxyMap this function is called.
Proxy
  
sendMessage(type:String, params:Object = null):void
Sends a message with optional params object.
Proxy
Property Detail
isReadyproperty
isReady:Boolean  [read-only]

Indicates if proxy is ready for usage. (all dependencies are injected.) Proxy will not be ready if it has pending, not resolved dependencies. (Pending injection feature must be turned on for that.)


Implementation
    protected function get isReady():Boolean
proxyMapproperty 
protected var proxyMap:IProxyMap

Interface to work with proxies.

Constructor Detail
Proxy()Constructor
public function Proxy()

CONSTRUCTOR

Method Detail
onRegister()method
protected function onRegister():void

Then proxy is created, mapped with proxyMap, and all dependencies injected making proxy ready - this function is called.

onRemove()method 
protected function onRemove():void

Then proxy is unmapped with proxyMap this function is called.

sendMessage()method 
protected function sendMessage(type:String, params:Object = null):void

Sends a message with optional params object.

Parameters

type:String — type of the message for Commands or Mediator's handle function to react to.
 
params:Object (default = null) — Object that will be passed to Command execute() function or to handle functions.