Packageorg.springextensions.actionscript.ioc.factory.config
SVN browsingStageComponentInterceptionPostProcessor.as
FisheyeStageComponentInterceptionPostProcessor.as
Classpublic class StageComponentInterceptionPostProcessor
ImplementsIObjectPostProcessor

This postprocessor uses an IObjectSelector instance to select certain stage components to be assigned to a specified target object. The assignment is done either by setting a property or calling a method, specified by the targetProperty and targetMethod properties respectively.

See also

IObjectSelector


Documentation reference: injecting stage components into other object


Public Properties
 PropertyDefined by
  interceptBeforeInitialization : Boolean
StageComponentInterceptionPostProcessor
  objectSelector : IObjectSelector
The IObjectSelector instance used to determine which objects will be assigned to the target object.
StageComponentInterceptionPostProcessor
  targetMethod : String
The name of the method on the target object to which the selected stage component(s) will be passed.
StageComponentInterceptionPostProcessor
  targetObject : Object
The name of the object as declared in the application context to which the selected stage component(s) will be assigned.
StageComponentInterceptionPostProcessor
  targetProperty : String
The name of the property on the target object to which the selected stage component(s) will be assigned.
StageComponentInterceptionPostProcessor
Public Methods
 MethodDefined by
  
Creates a new StageComponentInterceptionPostProcessor instance
StageComponentInterceptionPostProcessor
  
postProcessAfterInitialization(object:*, objectName:String):*
This method is invoked right after the IInitializingObject and initMethod logic is invoked in the wiring pipeline.
StageComponentInterceptionPostProcessor
  
postProcessBeforeInitialization(object:*, objectName:String):*
This method is invoked right before the IInitializingObject and initMethod logic is invoked in the wiring pipeline.
StageComponentInterceptionPostProcessor
  
processObject(object:Object):void
Either assigns the specified object to the specified property (targetProperty) or calls the specified method (targetMethod) and passes the object to it.
StageComponentInterceptionPostProcessor
Property detail
interceptBeforeInitializationproperty
interceptBeforeInitialization:Boolean  [read-write]Implementation
    public function get interceptBeforeInitialization():Boolean
    public function set interceptBeforeInitialization(value:Boolean):void
objectSelectorproperty 
objectSelector:IObjectSelector  [read-write]

The IObjectSelector instance used to determine which objects will be assigned to the target object.

Implementation
    public function get objectSelector():IObjectSelector
    public function set objectSelector(value:IObjectSelector):void
targetMethodproperty 
targetMethod:String  [read-write]

The name of the method on the target object to which the selected stage component(s) will be passed.

Implementation
    public function get targetMethod():String
    public function set targetMethod(value:String):void
targetObjectproperty 
targetObject:Object  [read-write]

The name of the object as declared in the application context to which the selected stage component(s) will be assigned.

Implementation
    public function get targetObject():Object
    public function set targetObject(value:Object):void
targetPropertyproperty 
targetProperty:String  [read-write]

The name of the property on the target object to which the selected stage component(s) will be assigned.

Implementation
    public function get targetProperty():String
    public function set targetProperty(value:String):void
Constructor detail
StageComponentInterceptionPostProcessor()constructor
public function StageComponentInterceptionPostProcessor()

Creates a new StageComponentInterceptionPostProcessor instance

Method detail
postProcessAfterInitialization()method
public function postProcessAfterInitialization(object:*, objectName:String):*

This method is invoked right after the IInitializingObject and initMethod logic is invoked in the wiring pipeline.

Parameters
object:* — The instance that is being configured by the object factory
 
objectName:String — The name of the object definition as found in the IObjectFactory's configuration

Returns
*
postProcessBeforeInitialization()method 
public function postProcessBeforeInitialization(object:*, objectName:String):*

This method is invoked right before the IInitializingObject and initMethod logic is invoked in the wiring pipeline.

Parameters
object:* — The instance that is being configured by the object factory
 
objectName:String — The name of the object as found in the IObjectFactory's configuration

Returns
*
processObject()method 
public function processObject(object:Object):void

Either assigns the specified object to the specified property (targetProperty) or calls the specified method (targetMethod) and passes the object to it.

Parameters
object:Object

Throws
— If neither targetProperty nor targetMethod has been set.