Packageorg.spicefactory.parsley.binding.processor
Classpublic class PersistentPublisherProcessor
InheritancePersistentPublisherProcessor Inheritance Object
Implements PropertyProcessor, StatefulProcessor

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(scope:String, id:String = null, persistentKey:Object = null)
Creates a new instance.
PersistentPublisherProcessor
  
Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.
PersistentPublisherProcessor
  
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context.
PersistentPublisherProcessor
  
init(target:ManagedObject):void
Invoked during initialization of the target instance.
PersistentPublisherProcessor
  
targetProperty(property:Property):void
Sets the target property for this processor.
PersistentPublisherProcessor
Constructor Detail
PersistentPublisherProcessor()Constructor
public function PersistentPublisherProcessor(scope:String, id:String = null, persistentKey:Object = null)

Creates a new instance.

Parameters
scope:String — the scope the property value is published to
 
id:String (default = null) — the id the value is published with to the BindingManager
 
persistentKey:Object (default = null) — the key the value is passed with to the PersistenceManager
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