Packageorg.spicefactory.parsley.binding.processor
Classpublic class SubscriberProcessor
InheritanceSubscriberProcessor Inheritance Object
Implements ObjectProcessor

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(target:ManagedObject, property:Property, scope:String, id:String = null)
Creates a new instance.
SubscriberProcessor
  
newFactory(property:Property, scope:String, id:String = null):ObjectProcessorFactory
[static] Creates a new processor factory.
SubscriberProcessor
  
Invoked after the destroy method of the target instance has been invoked.
SubscriberProcessor
  
preInit():void
Invoked before the init method of the target instance will be invoked.
SubscriberProcessor
Constructor Detail
SubscriberProcessor()Constructor
public function SubscriberProcessor(target:ManagedObject, property:Property, scope:String, id:String = null)

Creates a new instance.

Parameters
target:ManagedObject — the managed target object
 
property:Property — the target property that binds to the source value
 
scope:String — the scope the binding listens to
 
id:String (default = null) — the id the source is published with
Method Detail
newFactory()method
public static function newFactory(property:Property, scope:String, id:String = null):ObjectProcessorFactory

Creates a new processor factory.

Parameters

property:Property — the target property that binds to the source value
 
scope:String — the scope the binding listens to
 
id:String (default = null) — the id the source is published with

Returns
ObjectProcessorFactory — a new processor factory
postDestroy()method 
public function postDestroy():void

Invoked after the destroy method of the target instance has been invoked. Implementations will usually unregister message receivers, unwatch bindings, remove listeners or perform similar disposal tasks.

preInit()method 
public function preInit():void

Invoked before the init method of the target instance will be invoked. Implementations will usually set properties, registers message receivers or performs similar configuration tasks for the target instance managed by this processor.