Packageorg.spicefactory.parsley.core.binding.impl
Classpublic class LocalPersistenceManager
InheritanceLocalPersistenceManager Inheritance flash.events.EventDispatcher
Implements PersistenceManager, ScopeAware

Default implementation of the PersistenceManager interface that persists to a local SharedObject.



Public Methods
 MethodDefined By
  
LocalPersistenceManager(name:String = parsley_persistence)
LocalPersistenceManager
  
deleteValue(key:Object):void
Deletes the value mapping to the specified key.
LocalPersistenceManager
  
getValue(key:Object):Object
Returns the value mapping to the specified type and id.
LocalPersistenceManager
  
init(scope:Scope):void
Invoked once after the extension has been instantiated.
LocalPersistenceManager
  
saveValue(key:Object, value:Object):void
Saves the specified value.
LocalPersistenceManager
Constructor Detail
LocalPersistenceManager()Constructor
public function LocalPersistenceManager(name:String = parsley_persistence)



Parameters
name:String (default = parsley_persistence)
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
init()method 
public function init(scope:Scope):void

Invoked once after the extension has been instantiated. The Scope instance passed to this method represents the scope that this extension is associated with.

Parameters

scope:Scope — the scope this extension is associated with

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