Package org.switchyard.common.camel

Examples of org.switchyard.common.camel.SwitchYardCamelContextImpl$CDISupport


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

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


    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

    protected SwitchYardCamelContextImpl _camelContext;

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

     * @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

     */
    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

    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

    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

    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

    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

        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

Related Classes of org.switchyard.common.camel.SwitchYardCamelContextImpl$CDISupport

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.