Packagecom.asfusion.mate.core
Interfacepublic interface IMateManager extends flash.events.IEventDispatcher

IMateManager is the core class of Mate



Public Properties
 PropertyDefined by
  application : Application
[read-only] A reference to the Application instance
IMateManager
  debugger : ILoggingTarget
IMateManager
  dispatcher : IEventDispatcher
IMateManager
  listenerProxyType : String
IMateManager
  responseDispatcher : IEventDispatcher
[read-only] A reference to the IEventDispatcher instance used by the Response tag
IMateManager
  systemManager : ISystemManager
[read-only] A reference to the ISystemManager instance
IMateManager
Public Methods
 MethodDefined by
  
addCachedInstance(template:Class, instance:Object):void
Adds an instance to the cache.
IMateManager
  
addListenerProxy(eventDispatcher:IEventDispatcher, type:String = null):void
Adds a proxy listener for a specific type.
IMateManager
  
callLater(method:Function):void
Queues a function to be called later.
IMateManager
  
clearCachedInstance(template:Class):void
Removes an instance from the cache.
IMateManager
  
getCachedInstance(template:Class):Object
Retrieves an instance from the cache.
IMateManager
  
getLogger(active:Boolean):IMateLogger
An IMateLogger used to log errors.
IMateManager
Property detail
applicationproperty
application:Application  [read-only]

A reference to the Application instance

Implementation
    public function get application():Application
debuggerproperty 
debugger:ILoggingTarget  [read-write]Implementation
    public function get debugger():ILoggingTarget
    public function set debugger(value:ILoggingTarget):void
dispatcherproperty 
dispatcher:IEventDispatcher  [read-write]Implementation
    public function get dispatcher():IEventDispatcher
    public function set dispatcher(value:IEventDispatcher):void
listenerProxyTypeproperty 
listenerProxyType:String  [read-write]Implementation
    public function get listenerProxyType():String
    public function set listenerProxyType(value:String):void
responseDispatcherproperty 
responseDispatcher:IEventDispatcher  [read-only]

A reference to the IEventDispatcher instance used by the Response tag

Implementation
    public function get responseDispatcher():IEventDispatcher
systemManagerproperty 
systemManager:ISystemManager  [read-only]

A reference to the ISystemManager instance

Implementation
    public function get systemManager():ISystemManager
Method detail
addCachedInstance()method
public function addCachedInstance(template:Class, instance:Object):void

Adds an instance to the cache.

Parameters
template:Class
 
instance:Object
addListenerProxy()method 
public function addListenerProxy(eventDispatcher:IEventDispatcher, type:String = null):void

Adds a proxy listener for a specific type.

Parameters
eventDispatcher:IEventDispatcher
 
type:String (default = null)
callLater()method 
public function callLater(method:Function):void

Queues a function to be called later.

Before each update of the screen, Flash Player or AIR calls the set of functions that are scheduled for the update. Sometimes, a function should be called in the next update to allow the rest of the code scheduled for the current update to be executed. Some features, like effects, can cause queued functions to be delayed until the feature completes.

Parameters
method:Function
clearCachedInstance()method 
public function clearCachedInstance(template:Class):void

Removes an instance from the cache.

Parameters
template:Class
getCachedInstance()method 
public function getCachedInstance(template:Class):Object

Retrieves an instance from the cache.

Parameters
template:Class

Returns
Object
getLogger()method 
public function getLogger(active:Boolean):IMateLogger

An IMateLogger used to log errors. Similar to Flex ILogger

Parameters
active:Boolean

Returns
IMateLogger