Packageorg.robotlegs.mvcs
Classpublic class Context
InheritanceContext Inheritance ContextBase Inheritance Object
Implements IContext

Abstract MVCS IContext implementation



Public Properties
 PropertyDefined By
  contextView : DisplayObjectContainer
The DisplayObjectContainer that scopes this IContext
Context
 InheritedeventDispatcher : IEventDispatcher
[read-only] The IContext's IEventDispatcher
ContextBase
Protected Properties
 PropertyDefined By
  commandMap : ICommandMap
The ICommandMap for this IContext
Context
  injector : IInjector
The IInjector for this IContext
Context
  mediatorMap : IMediatorMap
The IMediatorMap for this IContext
Context
  reflector : IReflector
The IReflector for this IContext
Context
  viewMap : IViewMap
The IViewMap for this IContext
Context
Public Methods
 MethodDefined By
  
Context(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true)
Abstract Context Implementation Extend this class to create a Framework or Application context
Context
  
shutdown():void
The Startup Hook Override this in your Application context
Context
  
startup():void
The Startup Hook Override this in your Application context
Context
Protected Methods
 MethodDefined By
  
Injection Mapping Hook Override this in your Framework context to change the default configuration Beware of collisions in your container
Context
Property Detail
commandMapproperty
commandMap:ICommandMap

The ICommandMap for this IContext


Implementation
    protected function get commandMap():ICommandMap
    protected function set commandMap(value:ICommandMap):void
contextViewproperty 
contextView:DisplayObjectContainer

The DisplayObjectContainer that scopes this IContext


Implementation
    public function get contextView():DisplayObjectContainer
    public function set contextView(value:DisplayObjectContainer):void
injectorproperty 
injector:IInjector

The IInjector for this IContext


Implementation
    protected function get injector():IInjector
    protected function set injector(value:IInjector):void
mediatorMapproperty 
mediatorMap:IMediatorMap

The IMediatorMap for this IContext


Implementation
    protected function get mediatorMap():IMediatorMap
    protected function set mediatorMap(value:IMediatorMap):void
reflectorproperty 
reflector:IReflector

The IReflector for this IContext


Implementation
    protected function get reflector():IReflector
    protected function set reflector(value:IReflector):void
viewMapproperty 
viewMap:IViewMap

The IViewMap for this IContext


Implementation
    protected function get viewMap():IViewMap
    protected function set viewMap(value:IViewMap):void
Constructor Detail
Context()Constructor
public function Context(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true)

Abstract Context Implementation

Extend this class to create a Framework or Application context

Parameters
contextView:DisplayObjectContainer (default = null) — The root view node of the context. The context will listen for ADDED_TO_STAGE events on this node
 
autoStartup:Boolean (default = true) — Should this context automatically invoke it's startup method when it's contextView arrives on Stage?
Method Detail
mapInjections()method
protected function mapInjections():void

Injection Mapping Hook

Override this in your Framework context to change the default configuration

Beware of collisions in your container

shutdown()method 
public function shutdown():void

The Startup Hook

Override this in your Application context

startup()method 
public function startup():void

The Startup Hook

Override this in your Application context