Packageorg.springextensions.actionscript.stage
Classpublic class DefaultAutowiringStageProcessor
InheritanceDefaultAutowiringStageProcessor Inheritance Object
Implements IApplicationContextAware, org.as3commons.stageprocessing.IStageObjectProcessor, org.as3commons.lang.IDisposable, IInitializingObject
Subclasses DefaultFlexAutowiringStageProcessor

IStageProcessor implementation that is created by default by the FlexXMLApplicationContext to perform autowiring and dependency injection on stage components.



Public Properties
 PropertyDefined By
  applicationContext : IApplicationContext
IObjectFactory instance whose wire() method will be invoked in the process() method.
DefaultAutowiringStageProcessor
  autowireOnce : Boolean
Determines whether an object will be autowired again when it is passed to the process() method more than once.
DefaultAutowiringStageProcessor
  isDisposed : Boolean
[read-only]
DefaultAutowiringStageProcessor
  objectDefinitionResolver : IObjectDefinitionResolver
An IObjectDefinitionResolver to retrieve IObjectDefinition used for stage object wiring.
DefaultAutowiringStageProcessor
Protected Properties
 PropertyDefined By
  componentCache : Dictionary
A Dictionary instance used to keep track of the stage components that have already been processed by the current DefaultAutowiringStageProcessor.
DefaultAutowiringStageProcessor
Public Methods
 MethodDefined By
  
Creates a new DefaultAutowiringStageProcessor instance.
DefaultAutowiringStageProcessor
  
DefaultAutowiringStageProcessor
  
dispose():void
DefaultAutowiringStageProcessor
  
process(displayObject:DisplayObject):DisplayObject
Invokes the wire() method on the objectFactory property with the specified object.
DefaultAutowiringStageProcessor
  
toString():String
DefaultAutowiringStageProcessor
Property Detail
applicationContextproperty
applicationContext:IApplicationContext

IObjectFactory instance whose wire() method will be invoked in the process() method.


Implementation
    public function get applicationContext():IApplicationContext
    public function set applicationContext(value:IApplicationContext):void
autowireOnceproperty 
autowireOnce:Boolean

Determines whether an object will be autowired again when it is passed to the process() method more than once.

The default value is true.


Implementation
    public function get autowireOnce():Boolean
    public function set autowireOnce(value:Boolean):void
componentCacheproperty 
protected var componentCache:Dictionary

A Dictionary instance used to keep track of the stage components that have already been processed by the current DefaultAutowiringStageProcessor. This Dictionary instance is created with the weakKeys constructor argument set to true and will therefore not cause any memory leaks should any of the components be removed from the stage permanently.

See also

isDisposedproperty 
isDisposed:Boolean  [read-only]


Implementation
    public function get isDisposed():Boolean
objectDefinitionResolverproperty 
objectDefinitionResolver:IObjectDefinitionResolver

An IObjectDefinitionResolver to retrieve IObjectDefinition used for stage object wiring.

The default value is DefaultObjectDefinitionResolver.


Implementation
    public function get objectDefinitionResolver():IObjectDefinitionResolver
    public function set objectDefinitionResolver(value:IObjectDefinitionResolver):void
Constructor Detail
DefaultAutowiringStageProcessor()Constructor
public function DefaultAutowiringStageProcessor()

Creates a new DefaultAutowiringStageProcessor instance.

Method Detail
afterPropertiesSet()method
public function afterPropertiesSet():void

dispose()method 
public function dispose():void

process()method 
public function process(displayObject:DisplayObject):DisplayObject

Invokes the wire() method on the objectFactory property with the specified object.

The objectDefinitionResolver is used to retrieve an appropriate IObjectDefinition instance for the specified object.

Parameters

displayObject:DisplayObject

Returns
DisplayObject

See also

toString()method 
public function toString():String

Returns
String