Package | com.asfusion.mate.actions.builders |
Class | public class ServiceResponseAnnouncer |
Inheritance | ServiceResponseAnnouncer BaseAction AbstractAction |
Implements | IAction |
ServiceResponseAnnouncer
tag is placed inside a IActionList
, so that when an object dispatches an event,
and the list runs, this tag will allow you to send responses directly to the object that dispatched the event.
These responses are 3 predefined events:
Because of those predefined events, this tag is used inside a resultHandlers
or
faultHandlers
inner-action-list that are generated after server calls.
The use of this tag will have no effect if the original event was not dispatched using the Dispatcher
tag. Moreover,
this tag will have no effect if no ServiceResponseHandler
tag was added as an inner tag to the Dispatcher
tag.
The <ResponseAnnouncer>
tag has the following tag attributes:
<ResponseAnnouncer Properties type="result|fault|response" data="Object" />
See also
Property | Defined by | ||
---|---|---|---|
data : Objectdata is a placeholder object. | ServiceResponseAnnouncer | ||
properties : ArrayProperties allows you to add properties to the currentInstance . | BaseAction | ||
type : String
The type of response (case-sensitive).
| ServiceResponseAnnouncer |
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
createInstance(scope:IScope):Object
| ServiceResponseAnnouncer | ||
The first method that
trigger calls. | ServiceResponseAnnouncer | ||
Where all the action occurs.
| ServiceResponseAnnouncer | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |
data | property |
data:Object
[read-write]
data
is a placeholder object.
This object can be used to store temporary data to pass to the ServiceResponseListener.
public function get data():Object
public function set data(value:Object):void
type | property |
type:String
[read-write]The type of response (case-sensitive). Possible types:
public function get type():String
public function set type(value:String):void
See also
createInstance | () | method |
prepare | () | method |
protected override function prepare(scope:IScope):void
The first method that trigger
calls.
Usually, this is where the currentInstance
is created or set if needed.
In this method you can also perform any code that must be done first.
scope:IScope |
run | () | method |
protected override function run(scope:IScope):void
Where all the action occurs. At this moment, the currentInstance
is already instantiated and all the properties are already set.
scope:IScope |