Package org.apache.synapse.config

Examples of org.apache.synapse.config.XMLToObjectMapper


            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    entry.setMapper(mapper);
                    entry.setValue(mapper.getObjectFromOMNode(omNode, properties));

                } else {
                    entry.setValue(omNode);
                }
            }
View Full Code Here


            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    dp.setMapper(mapper);
                    dp.setValue(mapper.getObjectFromOMNode(omNode));

                } else {
                    dp.setValue(omNode);
                }
            }
View Full Code Here

            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    entry.setMapper(mapper);
                    entry.setValue(mapper.getObjectFromOMNode(omNode, properties));

                } else {
                    entry.setValue(omNode);
                }
            }
View Full Code Here

        if (tobeAdapted instanceof Mediator) {
            return tobeAdapted;
        } else if (tobeAdapted instanceof OMElement) {

            /* The mapper that can convert XML into custom object */
            XMLToObjectMapper mapper = MediatorFactoryFinder.getInstance();
            Object result = mapper.getObjectFromOMNode((OMNode) tobeAdapted,new Properties());

            if (result instanceof Mediator) {
                return result;
            } else {
                throw new LoggedRuntimeException("Incompatible value for the sequence " +
View Full Code Here

                        "    </sequence>")));
        return context;
    }

    private Mediator getMediator(OMNode omNode) {
        XMLToObjectMapper mapper = MediatorFactoryFinder.getInstance();
        Properties properties = new Properties();
        return (Mediator) mapper.getObjectFromOMNode(omNode,properties);
    }
View Full Code Here

            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    entry.setMapper(mapper);
                    entry.setValue(mapper.getObjectFromOMNode(omNode));

                } else {
                    entry.setValue(omNode);
                }
            }
View Full Code Here

            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    entry.setMapper(mapper);
                    entry.setValue(mapper.getObjectFromOMNode(omNode));

                } else {
                    entry.setValue(omNode);
                }
            }
View Full Code Here

            // if the type of the object is known to have a mapper, create the
            // resultant Object using the known mapper, and cache this Object
            // else cache the raw OMNode
            if (re != null && re.getType() != null) {

                XMLToObjectMapper mapper = getMapper(re.getType());
                if (mapper != null) {
                    entry.setMapper(mapper);
                    entry.setValue(mapper.getObjectFromOMNode(omNode));

                } else {
                    entry.setValue(omNode);
                }
            }
View Full Code Here

TOP

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

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.