Packageorg.spicefactory.parsley.binding.processor
Classpublic class SubscriberProcessor
InheritanceSubscriberProcessor Inheritance Object
Implements PropertyProcessor, StatefulProcessor

Processes a single property holding a a value that that should be bound to the value of a matching publisher. It makes sure that the subscriber is registered with the corresponding BindingManager of the target scope during the lifetime of a managed object.



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

Creates a new instance.

Parameters
scope:String — the scope the binding listens to
 
id:String (default = null) — the id the source is published with
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