Packagecom.asfusion.mate.actions
Classpublic class CacheSetter
InheritanceCacheSetter Inheritance AbstractAction
ImplementsIAction

CacheCopier Mate tag - adds an existing instance of a class to the specified Mate cache



Public Properties
 PropertyDefined by
  cache : String
The cache atribute is only useful when the destination is a class.
CacheSetter
  cacheKey : Object
The key to use for the cache
CacheSetter
  instance : Object
The instance to set in the cache
CacheSetter
Protected Properties
 PropertyDefined by
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
AbstractAction
  
prepare(scope:IScope):void
The first method that trigger calls.
CacheSetter
  
run(scope:IScope):void
Where all the action occurs.
CacheSetter
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
AbstractAction
Property detail
cacheproperty
cache:String  [read-write]

The cache atribute is only useful when the destination is a class. This attribute defines which cache we will look up for a created object.

Implementation
    public function get cache():String
    public function set cache(value:String):void
cacheKeyproperty 
cacheKey:Object  [read-write]

The key to use for the cache

Implementation
    public function get cacheKey():Object
    public function set cacheKey(value:Object):void
instanceproperty 
instance:Object  [read-write]

The instance to set in the cache

Implementation
    public function get instance():Object
    public function set instance(value:Object):void
Method detail
prepare()method
protected override function prepare(scope:IScope):void

The first method that trigger calls. Usually, this is where the currentInstance is created or set if needed. In this method you can also perform any code that must be done first.

Parameters
scope:IScope
run()method 
protected override function run(scope:IScope):void

Where all the action occurs. At this moment, the currentInstance is already instantiated and all the properties are already set.

Parameters
scope:IScope