Package | com.asfusion.mate.actions |
Class | public class CacheSetter |
Inheritance | CacheSetter AbstractAction |
Implements | IAction |
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
The first method that
trigger calls. | CacheSetter | ||
Where all the action occurs.
| CacheSetter | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | AbstractAction |
cache | property |
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
cacheKey | property |
cacheKey:Object
[read-write]The key to use for the cache
Implementation public function get cacheKey():Object
public function set cacheKey(value:Object):void
instance | property |
instance:Object
[read-write]The instance to set in the cache
Implementation public function get instance():Object
public function set instance(value:Object):void
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.
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.
scope:IScope |