Packageorg.springextensions.actionscript.stage
SVN browsingStageProcessorFactoryPostprocessor.as
FisheyeStageProcessorFactoryPostprocessor.as
Classpublic class StageProcessorFactoryPostprocessor
ImplementsIObjectFactoryPostProcessor
SubclassesFlexStageProcessorFactoryPostProcessor

IObjectFactoryPostProcessor implementation that retrieves all the IStageProcessor from the IConfigurableListableObjectFactory instance and registers them by invoking the registerStageProcessor() method on the IStageProcessorRegistry instance.



Documentation reference: the istageprocessor interface

Sample project: stagewiring (source)


Public Methods
 MethodDefined by
  
Creates a new StageProcessorFactoryPostprocessor instance.
StageProcessorFactoryPostprocessor
  

First checks if the objectFactory argument is an implementation of IStageProcessorRegistry, if not the objectFactory is checked to see if it contains an object that implements IStageProcessorRegistry.

If an IStageProcessorRegistry instance has been found the objectFactory is used to retrieve all IStageProcessor instances which all are registered with the specified IStageProcessorRegistry.
StageProcessorFactoryPostprocessor
Protected Methods
 MethodDefined by
  
Currently the FlashStageProcessorRegistry doesn't support multiple contexts wiring different views, so for now we just return the objectFactory.
StageProcessorFactoryPostprocessor
  
Retrieves all objects in the container of the type IStageProcessorRegistry and returns the first instance.
StageProcessorFactoryPostprocessor
  
registerProcessor(stageProcessorRegistry:IStageProcessorRegistry, name:String, stageProcessor:IStageProcessor, document:Object):void
Registers the specified IStageProcessor with the specified IStageProcessorRegistry.
StageProcessorFactoryPostprocessor
Constructor detail
StageProcessorFactoryPostprocessor()constructor
public function StageProcessorFactoryPostprocessor()

Creates a new StageProcessorFactoryPostprocessor instance.

Method detail
findCurrentDocument()method
protected function findCurrentDocument(objectFactory:IConfigurableListableObjectFactory):Object

Currently the FlashStageProcessorRegistry doesn't support multiple contexts wiring different views, so for now we just return the objectFactory.

Parameters
objectFactory:IConfigurableListableObjectFactory

Returns
Object — the objectFactory instance.
findStageProcessorRegistryInFactory()method 
protected function findStageProcessorRegistryInFactory(objectFactory:IConfigurableListableObjectFactory):IStageProcessorRegistry

Retrieves all objects in the container of the type IStageProcessorRegistry and returns the first instance. If no objects are found, null is returned.

Parameters
objectFactory:IConfigurableListableObjectFactory — The IConfigurableListableObjectFactory that will be searched.

Returns
IStageProcessorRegistry — An IStageProcessorRegistry or null if none was found.
postProcessObjectFactory()method 
public function postProcessObjectFactory(objectFactory:IConfigurableListableObjectFactory):void

First checks if the objectFactory argument is an implementation of IStageProcessorRegistry, if not the objectFactory is checked to see if it contains an object that implements IStageProcessorRegistry.

If an IStageProcessorRegistry instance has been found the objectFactory is used to retrieve all IStageProcessor instances which all are registered with the specified IStageProcessorRegistry. Parameters
objectFactory:IConfigurableListableObjectFactory
registerProcessor()method 
protected function registerProcessor(stageProcessorRegistry:IStageProcessorRegistry, name:String, stageProcessor:IStageProcessor, document:Object):void

Registers the specified IStageProcessor with the specified IStageProcessorRegistry. If the specified IStageProcessor.document property is null, it will be assigned with the specified document instance.

Parameters
stageProcessorRegistry:IStageProcessorRegistry — The specified IStageProcessorRegistry instance.
 
name:String — The name under which the specified IStageProcessor will be registered.
 
stageProcessor:IStageProcessor — The specified IStageProcessor instance.
 
document:Object — The specified document instance.