Skip to content
cliffhall edited this page Sep 23, 2012 · 7 revisions

PureMVC ActionScript 3 Utility: Deployment Config

The Deployment Config utility offers a simple solution to the problem of retrieving configuration and distributing it throughout a PureMVC application. Support is provided for multiple deployment environments, such that a single configuration file can hold the unique configuration settings for any number of deployment environments. A single environment is selected by changing the value of a single tag in the XML to point to the desired configuration. Standard and MultiCore versions are included.

API Docs

Status

Production - Version 1.0

Platforms / Technologies

Features in 1.0

  • XML Namespaces are used to represent the same values for multiple deployment environments.
  • Developer creates an XML configuration file based on the example, and a corresponding IConfigVO (usually by subclassing ConfigVO).
  • You add members to your concrete IConfigVO that expose the values from the selected deployment namespace in your XML configuration file.
  • The ConfigVO class offers a setConfig method that stores the XML configuration and extracts the deployment Namespace.
  • ConfigVO also has a validate method that checks that the deployment namespace was defined config file. You can override this and do your own validation to make sure that additionally, all the configuration values are defined for your deployment namespace.
  • The built-in ConfigProxy and ConfigDelegate classes are used to fetch the XML configuration.
  • The ConfigProxy only need be extended in order to construct an instance of your concrete IConfigVO.
Clone this wiki locally