Package org.apache.synapse.config

Examples of org.apache.synapse.config.SpringConfigExtension


                log.debug("Creating a Spring mediator using configuration named : " + cfg.getAttributeValue());
                sm.setConfigName(cfg.getAttributeValue());

            } else {
                log.debug("Creating an inline Spring configuration using source : " + src.getAttributeValue());
                SpringConfigExtension sce = new SpringConfigExtension("inline", src.getAttributeValue());
                sm.setAppContext(sce.getAppContext());
            }
            return sm;
        }
        return null;
    }
View Full Code Here


     * @param elem the XML configuration element
     * @return A named Spring Configuration
     */
    public Extension createExtension(OMElement elem) {

        SpringConfigExtension springCfgExt = null;
        OMAttribute name = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "name"));
        OMAttribute src  = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "src"));

        if (name == null) {
            handleException("The 'name' attribute is required for a Spring configuration definition");
        } else if (src == null) {
            handleException("The 'src' attribute is required for a Spring configuration definition");
        } else {
            springCfgExt = new SpringConfigExtension(name.getAttributeValue(), src.getAttributeValue());
        }
        return springCfgExt;
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.config.SpringConfigExtension

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.