Examples of CamelBindingModel


Examples of org.switchyard.component.camel.common.model.CamelBindingModel

     * @throws Exception In case of any problems exception is not handled.
     */
    @SuppressWarnings("unchecked")
    protected T getFirstCamelModelBinding(final String config) throws Exception {
        final InputStream in = Classes.getResourceAsStream(config, getClass());
        final CamelBindingModel model = new ModelPuller<CamelBindingModel>().pull(in);
        return (T) model;
    }
View Full Code Here

Examples of org.switchyard.component.camel.common.model.CamelBindingModel

        new OutboundHandler(null, mock(SwitchYardCamelContext.class), _messageComposer, null);
    }

    @Test
    public void throwsIllegalArgumentExceptionIfBindingModelURIIsNull() {
        CamelBindingModel emptyURIModel = mock(CamelBindingModel.class);
        when(bindingModel.getComponentURI()).thenReturn(null);
        exception.expect(IllegalArgumentException.class);
        exception.expectMessage("binding uri must not be null");
        new OutboundHandler(emptyURIModel, mock(SwitchYardCamelContext.class), _messageComposer, null);
    }
View Full Code Here

Examples of org.switchyard.component.camel.common.model.CamelBindingModel

        super(context, types);
    }

    @Override
    public ServiceHandler activateBinding(QName serviceName, BindingModel config) {
        CamelBindingModel binding = (CamelBindingModel) config;
        binding.setEnvironment(getEnvironment());

        if (binding.isServiceBinding()) {
            return createInboundHandler(serviceName, binding);
        } else {
            return createOutboundHandler(binding);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.