Packageorg.springextensions.actionscript.ioc.factory.xml.preprocessors
SVN browsingScopeAttributePreprocessor.as
FisheyeScopeAttributePreprocessor.as
Classpublic class ScopeAttributePreprocessor
ImplementsIXMLObjectDefinitionsPreprocessor

The ScopeAttributePreprocessor makes sure that all object definitions have a valid scope attribute.

If no scope attribute is found, a default scope="singleton" will be added. If a singleton attribute is found, it will be converted to the corresponding scope attribute.

See also

ObjectDefinitionScope


Public Methods
 MethodDefined by
  
Creates a new ScopeAttributePreprocessor.
ScopeAttributePreprocessor
  
preprocess(xml:XML):XML
Preprocesses the passed in xml data and returns it.
ScopeAttributePreprocessor
Constructor detail
ScopeAttributePreprocessor()constructor
public function ScopeAttributePreprocessor()

Creates a new ScopeAttributePreprocessor.

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

Preprocesses the passed in xml data and returns it.

Parameters
xml:XML — the xml data to be preprocessed

Returns
XML — the preprocessed xml data