Packageorg.spicefactory.parsley.binding.processor
Classpublic class PersistentPublisherProcessor
InheritancePersistentPublisherProcessor Inheritance Object
Implements ObjectProcessor

Processes the persistence aspect of a published value. It makes sure that the publisher is registered with the corresponding BindingManager of the target scope during the lifetime of a managed object.



Public Methods
 MethodDefined By
  
PersistentPublisherProcessor(target:ManagedObject, property:Property, scope:Scope, id:String = null)
Creates a new instance.
PersistentPublisherProcessor
  
newFactory(property:Property, scope:Scope, id:String = null):ObjectProcessorFactory
[static] Creates a new processor factory.
PersistentPublisherProcessor
  
Invoked after the destroy method of the target instance has been invoked.
PersistentPublisherProcessor
  
preInit():void
Invoked before the init method of the target instance will be invoked.
PersistentPublisherProcessor
Constructor Detail
PersistentPublisherProcessor()Constructor
public function PersistentPublisherProcessor(target:ManagedObject, property:Property, scope:Scope, id:String = null)

Creates a new instance.

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

Creates a new processor factory.

Parameters

property:Property — the target property that holds the published value
 
scope:Scope — the scope the property value is published to
 
id:String (default = null) — the id the value 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.