Packageorg.springextensions.actionscript.ioc.factory.xml.preprocessors
SVN browsingInnerObjectsPreprocessor.as
FisheyeInnerObjectsPreprocessor.as
Classpublic class InnerObjectsPreprocessor
ImplementsIXMLObjectDefinitionsPreprocessor

This IXMLObjectDefinitionsPreprocessor implementation looks for inner objects, objects that are children or grandchildren of an object, and sets their lazy-init attribute to true. This way the inner objects won't be instantiated when their parent object is either lazy-init or prototype.



Public Methods
 MethodDefined by
  
Creates a new InnerObjectsPreprocessor instance.
InnerObjectsPreprocessor
  
preprocess(xml:XML):XML
Retrieves all <object/> element that have an ancestor <object/> element, checks if their scope attribute is set to singleton, and if so, set their lazy-init attribute to true.
InnerObjectsPreprocessor
Constructor detail
InnerObjectsPreprocessor()constructor
public function InnerObjectsPreprocessor()

Creates a new InnerObjectsPreprocessor instance.

Method detail
preprocess()method
public function preprocess(xml:XML):XML

Retrieves all <object/> element that have an ancestor <object/> element, checks if their scope attribute is set to singleton, and if so, set their lazy-init attribute to true.

Parameters
xml:XML — The specified XML object

Returns
XML — The prcoessed XML object