Packageorg.springextensions.actionscript.ioc.factory.xml.preprocessors
SVN browsingPropertiesPreprocessor.as
FisheyePropertiesPreprocessor.as
Classpublic class PropertiesPreprocessor
ImplementsIXMLObjectDefinitionsPreprocessor

Replaces all properties placeholders in the xml of the application context with the values in the Properties objects.

Recursive property replacement is supported.

If a property was not found, it will not be replaced with an empty string, but left as is.



Documentation reference: external property files


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

Creates a new PropertiesPreprocessor object.

Parameters
factory:IObjectFactory — the collection of Properties objects to apply
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