Packageorg.spicefactory.parsley.binding.impl
Classpublic class PersistentSubscriber
InheritancePersistentSubscriber Inheritance AbstractSubscriber Inheritance flash.events.EventDispatcher
Implements Subscriber

A subscriber that passes all updates to the installed persistence manager.



Public Properties
 PropertyDefined By
 Inheritedid : String
[read-only]
AbstractSubscriber
 Inheritedtype : ClassInfo
[read-only]
AbstractSubscriber
 Inheritedunique : Boolean
[read-only]
AbstractSubscriber
Public Methods
 MethodDefined By
  
PersistentSubscriber(manager:PersistenceManager, type:ClassInfo, id:String = null, persistentKey:Object = null)
Creates a new instance.
PersistentSubscriber
  
update(newValue:*):void
Notifies this suscriber that the published value has changed.
PersistentSubscriber
Constructor Detail
PersistentSubscriber()Constructor
public function PersistentSubscriber(manager:PersistenceManager, type:ClassInfo, id:String = null, persistentKey:Object = null)

Creates a new instance.

Parameters
manager:PersistenceManager — the manager to write values to
 
type:ClassInfo — the type of the published value
 
id:String (default = null) — the id the value is published with
 
persistentKey:Object (default = null) — the key to pass to the persistence manager in case it differs from the id
Method Detail
update()method
public function update(newValue:*):void

Notifies this suscriber that the published value has changed.

Parameters

newValue:* — the new value of the matching publisher