Interface ConfigurationLoader

  • All Known Implementing Classes:
    XmlConfigurationLoader

    public interface ConfigurationLoader
    A ConfigurationLoader is used to load BeanIO mapping configurations from an input stream.

    Implementations must be thread safe.

    Since:
    1.0
    • Method Detail

      • loadConfiguration

        java.util.Collection<BeanIOConfig> loadConfiguration​(java.io.InputStream in,
                                                             java.util.Properties properties)
                                                      throws java.io.IOException,
                                                             BeanIOConfigurationException
        Loads a BeanIO configuration from an input stream.
        Parameters:
        in - the input stream to read the configuration from
        properties - the Properties for expansion in the mapping file
        Returns:
        a collection of loaded BeanIO configurations
        Throws:
        java.io.IOException - if an I/O error occurs
        BeanIOConfigurationException - if the configuration is invalid or malformed
        Since:
        1.2.1