Packageorg.spicefactory.parsley.messaging.processor
Classpublic class MessageDispatcherProcessor
InheritanceMessageDispatcherProcessor Inheritance Object
Implements PropertyProcessor, StatefulProcessor

Processor that injects a message dispatcher function into the target object for routing messages through the frameworks messaging system.



Public Methods
 MethodDefined By
  
MessageDispatcherProcessor(scope:String = null)
Creates a new processor instance.
MessageDispatcherProcessor
  
Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.
MessageDispatcherProcessor
  
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context.
MessageDispatcherProcessor
  
init(target:ManagedObject):void
Invoked during initialization of the target instance.
MessageDispatcherProcessor
  
targetProperty(property:Property):void
Sets the target property for this processor.
MessageDispatcherProcessor
Constructor Detail
MessageDispatcherProcessor()Constructor
public function MessageDispatcherProcessor(scope:String = null)

Creates a new processor instance.

Parameters
scope:String (default = null) — the target to listen to
Method Detail
clone()method
public function clone():StatefulProcessor

Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.

Returns
StatefulProcessor — a clone of this processor
destroy()method 
public function destroy(target:ManagedObject):void

Invoked when the target instance gets removed from the Context. Implementations will usually unregister message receivers, unwatch bindings, remove listeners or perform similar disposal tasks.

Parameters

target:ManagedObject — the target instance that is getting removed from the Context

init()method 
public function init(target:ManagedObject):void

Invoked during initialization of the target instance. Implementations will usually set properties, registers message receivers or performs similar configuration tasks for the target instance managed by this processor.

Parameters

target:ManagedObject — the target instance that is getting initialized

targetProperty()method 
public function targetProperty(property:Property):void

Sets the target property for this processor.

Parameters

property:Property — the target property for this processor