Configuration factory

Description

Configuration factory plugs into the container using component customization mechanism, and provides components that declare a dependency on a DNA Configuration (using a org.jcontainer.dna.Configuration component parameter) with an initialized configuration object.

The contents of the configuration object are read from an XML file, and verified against a RelaxNG schema.

Functionality anticipated in the future

  • Detecting of components that support runtime reconfiguration (possibly by extending org.jcontainer.dna.Configurableinterface.
  • Triggering of re-reading configuration from files on reconfigurable components
  • Programmatic setting of configuration of reconfigurable components.

Browse

Dependencies

required components FileSystem, XMLValidator
required libraries PicoContainer (picocontainer), DNA API (dna:dna-api), DNA implementation (dna:dna-impl), Jing (jing)

Constructor parameters

position type descritpion
1 org.picocontainer.MutablePicoContainer the container where CustomzizedComponentAdapter for DNA Configuration should be installed.
2 org.objectledge.filesystem.FileSystem The file system to read the configuration files from.
3 org.objectledge.xml.XMLValidator The validator for the configuration files.
4 java.lang.String The pathname of the directory where the configurations are loaded from.