| Package | org.springextensions.actionscript.ioc.factory.xml.preprocessors |
| SVN browsing | InnerObjectsPreprocessor.as |
| Fisheye | InnerObjectsPreprocessor.as |
| Class | public class InnerObjectsPreprocessor |
| Implements | IXMLObjectDefinitionsPreprocessor |
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.
| Method | Defined 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 | ||
| InnerObjectsPreprocessor | () | constructor |
public function InnerObjectsPreprocessor()
Creates a new InnerObjectsPreprocessor instance.
| preprocess | () | method |
public function preprocess(xml:XML):XMLRetrieves 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.
Parametersxml:XML — The specified XML object
|
XML — The prcoessed XML object
|