| Package | org.mvcexpress.mvc |
| Class | public class Proxy |
| Inheritance | Proxy Object |
| Property | Defined By | ||
|---|---|---|---|
| isReady : Boolean [read-only]
Indicates if proxy is ready for usage. | Proxy | ||
| proxyMap : IProxyMap
Interface to work with proxies. | Proxy | ||
| Method | Defined By | ||
|---|---|---|---|
Proxy() CONSTRUCTOR | Proxy | ||
| Method | Defined By | ||
|---|---|---|---|
onRegister():void
Then proxy is mapped with proxyMap 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 inside of current module. | Proxy | ||
sendScopeMessage(scopeName:String, type:String, params:Object = null):void
Sends scoped module to module message, all modules that are listening to specified scopeName and message type will get it. | Proxy | ||
| isReady | property |
isReady:Boolean [read-only] Indicates if proxy is ready for usage. (all dependencies are injected.)
protected function get isReady():Boolean| proxyMap | property |
protected var proxyMap:IProxyMapInterface to work with proxies.
| Proxy | () | Constructor |
public function Proxy()CONSTRUCTOR
| onRegister | () | method |
protected function onRegister():voidThen proxy is mapped with proxyMap this function is called.
| onRemove | () | method |
protected function onRemove():voidThen proxy is unmapped with proxyMap this function is called.
| sendMessage | () | method |
protected function sendMessage(type:String, params:Object = null):voidSends a message with optional params object inside of current module.
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.
|
| sendScopeMessage | () | method |
protected function sendScopeMessage(scopeName:String, type:String, params:Object = null):voidSends scoped module to module message, all modules that are listening to specified scopeName and message type will get it.
Parameters
scopeName:String — both sending and receiving modules must use same scope to make module to module communication.
| |
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 and to handle functions.
|