Class XmlConfiguration

java.lang.Object
org.eclipse.jetty.xml.XmlConfiguration

public class XmlConfiguration extends Object

Configures objects from XML.

This class reads an XML file conforming to the configure.dtd DTD and uses it to configure and object by calling set, put or other methods on the object.

The actual XML file format may be changed (eg to spring XML) by implementing the ConfigurationProcessorFactory interface to be found by the ServiceLoader by using the DTD and first tag element in the file. Note that DTD will be null if validation is off.

The configuration can be parameterised with properties that are looked up via the Property XML element and set on the configuration via the map returned from getProperties()

The configuration can create and lookup beans by ID. If multiple configurations are used, then it is good practise to copy the entries from the getIdMap() of a configuration to the next configuration so that they can share an ID space for beans.