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();
}
Aggregations