Packageorg.spicefactory.parsley.core.binding
Interfacepublic interface PersistenceManager extends flash.events.IEventDispatcher
Implementors LocalPersistenceManager

Pluggable strategy that allows to persist published values. An implementation of this interface will be invoked when a publisher with the persistent attribute set to true changes its value. The framework comes with a default implementation based on Local SharedObjects, but it can easily be replaced by mechanisms which are application-specific, like services that persist to the server.



Public Methods
 MethodDefined By
  
deleteValue(key:Object):void
Deletes the value mapping to the specified key.
PersistenceManager
  
getValue(key:Object):Object
Returns the value mapping to the specified type and id.
PersistenceManager
  
saveValue(key:Object, value:Object):void
Saves the specified value.
PersistenceManager
Events
 Event Summary Defined By
  Dispatched when the persistent values changed.PersistenceManager
Method Detail
deleteValue()method
public function deleteValue(key:Object):void

Deletes the value mapping to the specified key.

Parameters

key:Object — the key of the value to delete

getValue()method 
public function getValue(key:Object):Object

Returns the value mapping to the specified type and id.

Parameters

key:Object — the key of the value to retrieve

Returns
Object — the value mapping to the specified key
saveValue()method 
public function saveValue(key:Object, value:Object):void

Saves the specified value.

Parameters

key:Object — the key of the value to save
 
value:Object — the value to save

Event Detail
change Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.CHANGE

Dispatched when the persistent values changed.