Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created May 12, 2010 11:57
Show Gist options
  • Save nsdevaraj/398491 to your computer and use it in GitHub Desktop.
Save nsdevaraj/398491 to your computer and use it in GitHub Desktop.
Custom processor <processors:MediateSignalProcessor/> is used,
to get use of AS3Signals being listened by Metadata using [MediateSignal(type="SignalClass")]
<service:NativeMessenger/> is to use push messages either to produce or consume.
<signals:AbstractSignal/> the signal dispatched for any kind of server Request,
this same signal is dispatched again and again with use of queued array and
a Queue mechanism of <response:SignalSequence/>
<signals:ResultSignal/> this signal is dispatched after any server response is received,
through delegate <response:AbstractResult/> and processing the result is over.
<controller:ServiceController/> manages assigning the server parameters.
<vo:CurrentInstance/> is to manage the applications current state across the objects
(kind of alternative for ModelLocator in Cairngorm).
<controller:LoadConfigCommand /> bootstraps the application, by assigning server value.
<processor:TaskProcessor id="taskProcessor"/> is processor for your VO.
This file manages the server data mapping in client side.
Thus, avoiding same data being queried.
<swiz:Prototype name="taskDAO" constructorArguments="{['task',taskProcessor]}"
type="{AbstractDAO}" singleton="true"/>
This is an instance of AbstractDAO being created by deferred instantiation.
The object will send the 'task', taskProcessor(is optional) references as
Constructor Arguments to the AbstractDAO.
This instance of AbstractDAO will be created only when the below reference is used.
[Inject("taskDAO")]
public var personDAO:AbstractDAO;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment