Packageorg.pranaframework.ioc.factory.xml.preprocessors
Classpublic class ScopeAttributePrepocessor
ImplementsIXMLObjectDefinitionsPreprocessor

The ScopeAttributePrepocessor 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

org.pranaframework.ioc.ObjectDefinitionScope


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

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