| Package | org.springextensions.actionscript.stage |
| SVN browsing | DefaultAutowiringStageProcessor.as |
| Fisheye | DefaultAutowiringStageProcessor.as |
| Class | public class DefaultAutowiringStageProcessor |
| Inheritance | DefaultAutowiringStageProcessor AbstractStageProcessor |
| Implements | IApplicationContextAware, IStageDestroyer |
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 | DefaultAutowiringStageProcessor | ||
| autowireOnce : Boolean
Determines whether an object will be autowired again when it is passed to the
process() method more than once. | DefaultAutowiringStageProcessor | ||
![]() | document : Object
The MXML document associated with the current
IStageProcessor. | AbstractStageProcessor | |
![]() | isDisposed : Boolean | AbstractStageProcessor | |
| objectDefinitionResolver : IObjectDefinitionResolver
An
IObjectDefinitionResolver to retrieve IObjectDefinition
used for stage object wiring. | DefaultAutowiringStageProcessor | ||
![]() | objectSelector : IObjectSelector
The specified
IObjectSelector instance. | AbstractStageProcessor | |
| 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 | ||
|---|---|---|---|
|
DefaultAutowiringStageProcessor(objectFactory:IApplicationContext = null)
Creates a new
DefaultAutowiringStageProcessor instance. | DefaultAutowiringStageProcessor | ||
|
destroy(object:Object):Object
| DefaultAutowiringStageProcessor | ||
|
dispose():void
| DefaultAutowiringStageProcessor | ||
|
process(object:Object):Object
Invokes the
wire() method on the objectFactory property with the specified
object. | DefaultAutowiringStageProcessor | ||
|
toString():String
| DefaultAutowiringStageProcessor | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
abstractStageProcessorInit(self:AbstractStageProcessor):void
| AbstractStageProcessor | |
|
initDefaultAutowiringStageProcessor(objectFactory:IApplicationContext):void
| DefaultAutowiringStageProcessor | ||
| applicationContext | property |
applicationContext:IApplicationContext [read-write]Implementation
public function get applicationContext():IApplicationContext
public function set applicationContext(value:IApplicationContext):void
| autowireOnce | property |
autowireOnce:Boolean [read-write]
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
| objectDefinitionResolver | property |
objectDefinitionResolver:IObjectDefinitionResolver [read-write]
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(objectFactory:IApplicationContext = null)
Creates a new DefaultAutowiringStageProcessor instance.
objectFactory:IApplicationContext (default = null) |
| destroy | () | method |
public function destroy(object:Object):ObjectParameters
object:Object |
Object |
| dispose | () | method |
public override function dispose():void
| initDefaultAutowiringStageProcessor | () | method |
protected function initDefaultAutowiringStageProcessor(objectFactory:IApplicationContext):voidParameters
objectFactory:IApplicationContext |
| process | () | method |
public override function process(object:Object):Object
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.
Object.
Parameters
object:Object — The object that will be processed.
|
Object — The processed object.
|
See also
| toString | () | method |
public function toString():String
Returns
String |