Package org.switchyard.metadata

Examples of org.switchyard.metadata.BaseExchangeContract


        // Clone the RubyHash to convert it to a normal Map based graph.  This makes it possible
        // to more safely transport the payload data out of the ruby app via a SwitchYard Exchange...
        Map<String,Object> payload = deepClone(rubyHash);

        // Create the exchange contract...
        BaseExchangeContract exchangeContract = new BaseExchangeContract(operation);

        // Set the input type...
        exchangeContract.getInvokerInvocationMetaData().setInputType(JavaService.toMessageType(payload.getClass()));

        if (operation.getExchangePattern() == ExchangePattern.IN_OUT) {
            final BlockingQueue<Exchange> responseQueue = new ArrayBlockingQueue<Exchange>(1);

            AtomicReference<ExchangeHandler> responseExchangeHandler = new AtomicReference<ExchangeHandler>(new ExchangeHandler() {
View Full Code Here


    }

    @Override
    public BaseExchangeContract getContract() {
        if (_exchange.getProperty(CONTRACT) == null) {
            _exchange.setProperty(CONTRACT, new BaseExchangeContract());
        }
        return _exchange.getProperty(CONTRACT, BaseExchangeContract.class);
    }
View Full Code Here

TOP

Related Classes of org.switchyard.metadata.BaseExchangeContract

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.