org.jbind.xml.code
Interface IConfigurationCode

All Superinterfaces:
IXmlCode
All Known Implementing Classes:
ConfigurationCode

public interface IConfigurationCode
extends IXmlCode

Encapsulates XML configuration data. The root element of XML configuration data has to implement the IConfiguration interface.


Method Summary
 IConfiguration getConfiguration()
           
 void setup()
          Sets up the configuration by visiting all nodes in the XML configuration data.
 void tearDown()
          Tears down the configuration by visiting all node in the XML configuration data.
 
Methods inherited from interface org.jbind.xml.code.IXmlCode
getCode, getUrl
 

Method Detail

getConfiguration

public IConfiguration getConfiguration()
                                throws XmlException
Throws:
XmlException

setup

public void setup()
           throws XmlException
Sets up the configuration by visiting all nodes in the XML configuration data. If a node implements the ISetupAndTearDown interface then its setup method is called during a visit. Descendant nodes are setup before their ancestors.

The getNbSetupAndTearDownLevels method of the XML configuration data determines how often the data is visited. The visit is iterated starting at level 0.

Throws:
XmlException

tearDown

public void tearDown()
              throws XmlException
Tears down the configuration by visiting all node in the XML configuration data. If a node implements the ISetupAndTearDown interface then its setup tear down method is called. Ancestor nodes are teared down before their descendants.

The getNbSetupAndTearDownLevels method of the XML configuration data determines how often the data is visited. The visit is iterated starting at the number of levels - 1.

Throws:
XmlException