Search in sources :

Example 1 with DefaultComponentResolver

use of org.apache.camel.impl.DefaultComponentResolver in project camel by apache.

the class MllpTcpClientProducerBlueprintTest method addServicesOnStartup.

/*
        This doesn't seem to work
        @Override
        protected String useOverridePropertiesWithConfigAdmin(Dictionary props) throws Exception {

            props.put("mllp.port", mllpServer.getListenPort() );

            return "MllpTcpClientProducer";
        }
    */
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
    ComponentResolver testResolver = new DefaultComponentResolver();
    services.put(ComponentResolver.class.getName(), asService(testResolver, "component", "mllp"));
}
Also used : DefaultComponentResolver(org.apache.camel.impl.DefaultComponentResolver) DefaultComponentResolver(org.apache.camel.impl.DefaultComponentResolver) ComponentResolver(org.apache.camel.spi.ComponentResolver)

Example 2 with DefaultComponentResolver

use of org.apache.camel.impl.DefaultComponentResolver in project camel by apache.

the class MllpTcpServerConsumerBlueprintTest method addServicesOnStartup.

@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
    ComponentResolver testResolver = new DefaultComponentResolver();
    services.put(ComponentResolver.class.getName(), asService(testResolver, "component", "mllp"));
}
Also used : DefaultComponentResolver(org.apache.camel.impl.DefaultComponentResolver) DefaultComponentResolver(org.apache.camel.impl.DefaultComponentResolver) ComponentResolver(org.apache.camel.spi.ComponentResolver)

Aggregations

DefaultComponentResolver (org.apache.camel.impl.DefaultComponentResolver)2 ComponentResolver (org.apache.camel.spi.ComponentResolver)2