org.objectweb.jonathan.apis.kernel.decoders

Interface File2Configuration

Known Implementing Classes:
OpenXMLDecoder

public interface File2Configuration

XML file to runtime configuration import interface.

Method Summary

void
importElement(Context configuration, String file_name, ContextFactory context_factory, ClassPathFinder finder)
Imports the provided configuration file into the configuration.

Method Details

importElement

public void importElement(Context configuration,
                          String file_name,
                          ContextFactory context_factory,
                          ClassPathFinder finder)
            throws JonathanException
Imports the provided configuration file into the configuration.

Parameters:
configuration - the context to import the file to
file_name - the XML configuration file to import
context_factory - used to create contexts while importing
finder - used to find the XML configuration files to be imported (the provided one, and those it includes)

Throws:
JonathanException - if something goes wrong