| Package | org.springextensions.actionscript.stage |
| Class | public class DefaultAutowiringStageProcessor |
| Inheritance | DefaultAutowiringStageProcessor 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.
See also
| Property | Defined 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 | ||
| Property | Defined By | ||
|---|---|---|---|
| componentCache : Dictionary
A Dictionary instance used to keep track of the stage components that have already been
processed by the current DefaultAutowiringStageProcessor. | DefaultAutowiringStageProcessor | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new DefaultAutowiringStageProcessor instance. | DefaultAutowiringStageProcessor | ||
afterPropertiesSet():void | DefaultAutowiringStageProcessor | ||
dispose():void | DefaultAutowiringStageProcessor | ||
process(displayObject:DisplayObject):DisplayObject
Invokes the wire() method on the objectFactory property with the specified
object. | DefaultAutowiringStageProcessor | ||
toString():String | DefaultAutowiringStageProcessor | ||
| applicationContext | property |
applicationContext:IApplicationContext
IObjectFactory instance whose wire() method will be invoked in the process() method.
public function get applicationContext():IApplicationContext public function set applicationContext(value:IApplicationContext):void| autowireOnce | property |
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.
public function get autowireOnce():Boolean public function set autowireOnce(value:Boolean):void| componentCache | property |
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
| isDisposed | property |
isDisposed:Boolean [read-only] public function get isDisposed():Boolean| objectDefinitionResolver | property |
objectDefinitionResolver:IObjectDefinitionResolver
An IObjectDefinitionResolver to retrieve IObjectDefinition
used for stage object wiring.
The default value is DefaultObjectDefinitionResolver.
public function get objectDefinitionResolver():IObjectDefinitionResolver public function set objectDefinitionResolver(value:IObjectDefinitionResolver):void| DefaultAutowiringStageProcessor | () | Constructor |
public function DefaultAutowiringStageProcessor()
Creates a new DefaultAutowiringStageProcessor instance.
| 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 |
DisplayObject |
See also
| toString | () | method |
public function toString():StringReturnsString |