Package org.apache.synapse.config.xml

Examples of org.apache.synapse.config.xml.XMLConfigurationBuilder


     * @return the Synapse configuration model
     */
    public static SynapseConfiguration getConfiguration(String configFile) {

        // build the Synapse configuration parsing the XML config file
        XMLConfigurationBuilder xmlBuilder = null;
        try {
            xmlBuilder = new XMLConfigurationBuilder();
            SynapseConfiguration synCfg = xmlBuilder.getConfiguration(new FileInputStream(configFile));
            log.info("Loaded Synapse configuration from : " + configFile);
            return synCfg;

        } catch (FileNotFoundException fnf) {
            handleException("Cannot load Synapse configuration from : " + configFile, fnf);
View Full Code Here

TOP

Related Classes of org.apache.synapse.config.xml.XMLConfigurationBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.