Search in sources :

Example 1 with DefaultRegistry

use of org.apache.camel.support.DefaultRegistry in project ddf by codice.

the class FeatureTransformationServiceTest method setup.

@Before
public void setup() throws Exception {
    setupTransformers();
    DefaultRegistry registry = new DefaultRegistry();
    registry.bind("wfsTransformerProcessor", new WfsTransformerProcessor(transformerList));
    this.camelContext = new DefaultCamelContext(registry);
    camelContext.setTracing(true);
    camelContext.addRoutes(new WfsRouteBuilder());
    camelContext.adapt(ExtendedCamelContext.class).setErrorHandlerFactory(new NoErrorHandlerBuilder());
    Endpoint endpoint = camelContext.getEndpoint(WfsRouteBuilder.FEATURECOLLECTION_ENDPOINT_URL);
    featureTransformationService = ProxyHelper.createProxy(endpoint, FeatureTransformationService.class);
    camelContext.start();
}
Also used : FeatureTransformationService(org.codice.ddf.spatial.ogc.wfs.featuretransformer.FeatureTransformationService) Endpoint(org.apache.camel.Endpoint) ExtendedCamelContext(org.apache.camel.ExtendedCamelContext) DefaultRegistry(org.apache.camel.support.DefaultRegistry) NoErrorHandlerBuilder(org.apache.camel.builder.NoErrorHandlerBuilder) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Aggregations

Endpoint (org.apache.camel.Endpoint)1 ExtendedCamelContext (org.apache.camel.ExtendedCamelContext)1 NoErrorHandlerBuilder (org.apache.camel.builder.NoErrorHandlerBuilder)1 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)1 DefaultRegistry (org.apache.camel.support.DefaultRegistry)1 FeatureTransformationService (org.codice.ddf.spatial.ogc.wfs.featuretransformer.FeatureTransformationService)1 Before (org.junit.Before)1