Examples of SwitchYardCamelContextImpl


Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

        assertThat((Boolean)exchange.getContext().getProperty("composeInvoked").getValue(), is(true));
    }

    @Override
    protected CamelContext createCamelContext() throws Exception {
        return new SwitchYardCamelContextImpl();
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    protected SwitchYardCamelContext _camelContext;
    protected Configuration _configuration;

    @Before
    public void startUp() {
        _camelContext = new SwitchYardCamelContextImpl(false);
        _camelContext.addComponent("switchyard", new MockComponent());
        _configuration = mock(Configuration.class);
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    protected SwitchYardCamelContextImpl _camelContext;

    @Override
    protected CamelContext createCamelContext() throws Exception {
        _camelContext = new SwitchYardCamelContextImpl(false);
        _camelContext.setServiceDomain(_serviceDomain);
        return _camelContext;
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

     * @return exchange
     */
    private Exchange createCamelExchange() {
        DefaultMessage message = new DefaultMessage();
        message.setBody("foobar");
        message.setExchange(new DefaultExchange(new SwitchYardCamelContextImpl(false)));
        return message.getExchange();
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

     */
    public ServiceDomain createDomain(QName domainName, SwitchYardModel switchyardConfig) {
        TransformerRegistry transformerRegistry = new BaseTransformerRegistry();
        ValidatorRegistry validatorRegistry = new BaseValidatorRegistry();

        SwitchYardCamelContextImpl camelContext = new SwitchYardCamelContextImpl();
        CamelExchangeBus bus = new CamelExchangeBus(camelContext);

        ServiceDomainSecurity serviceDomainSecurity = getServiceDomainSecurity(switchyardConfig);

        DomainImpl domain = new DomainImpl(
                domainName, _registry, bus, transformerRegistry, validatorRegistry, _eventManager, serviceDomainSecurity);
        camelContext.setServiceDomain(domain);

        // set properties on the domain
        Map<String, String> properties = getDomainProperties(switchyardConfig);
        for (Map.Entry<String, String> property : properties.entrySet()) {
            domain.setProperty(property.getKey(), property.getValue());
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    private Exchange _exchange;
   
    @Before
    public void setUp() throws Exception {
        _domain = new MockDomain();
        _context = new SwitchYardCamelContextImpl();
        _context.setServiceDomain(_domain);
        _context.start();
        _exchange = new DefaultExchange(_context);
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    private MockDomain _domain;

    @Before
    public void setUp() throws Exception {
        _domain = new MockDomain();
        _camelContext = new SwitchYardCamelContextImpl();
        _camelContext.setServiceDomain(_domain);
        _provider = new CamelExchangeBus(_camelContext);
        _provider.init(_domain);
        _camelContext.start();
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    private MockDomain _domain;

    @Before
    public void setUp() throws Exception {
        _domain = new MockDomain();
        _camelContext = new SwitchYardCamelContextImpl();
        _camelContext.setServiceDomain(_domain);
        _provider = new CamelExchangeBus(_camelContext);
        _provider.init(_domain);
        _camelContext.start();
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

    private SwitchYardCamelContextImpl _camelContext;

    @Before
    public void setUp() throws Exception {
        _domain = new MockDomain();
        _camelContext = new SwitchYardCamelContextImpl();
        _camelContext.setServiceDomain(_domain);
        _provider = new CamelExchangeBus(_camelContext);
        _provider.init(_domain);
        _camelContext.start();
    }
View Full Code Here

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl

        assertNotNull("Relates to must be specified for outgoing message", relatesTo);
        assertEquals("Relates to property should point to in message id", messageId.getValue(), relatesTo.getValue());
    }
   
    private void initDomain(ServiceDomain domain) throws Exception {
        _camelContext = new SwitchYardCamelContextImpl();
        _camelContext.setServiceDomain(domain);
        _provider = new CamelExchangeBus(_camelContext);
        _provider.init(domain);
        _camelContext.start();
    }
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.