Search in sources :

Example 1 with ProcessorEndpoint

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

the class XsltReferenceParameterTest method setUp.

public void setUp() throws Exception {
    JndiRegistry registry = new JndiRegistry(new JndiContext());
    RouteBuilder builder = createRouteBuilder();
    CamelContext context = new DefaultCamelContext(registry);
    testConverter = new TestConverter();
    testTransformerFactory = TransformerFactory.newInstance();
    registry.bind("testConverter", testConverter);
    registry.bind("testTransformerFactory", testTransformerFactory);
    ProcessorEndpoint pep1 = context.getEndpoint(TEST_URI_1, ProcessorEndpoint.class);
    context.addRoutes(builder);
    context.start();
    builder1 = (XsltBuilder) pep1.getProcessor();
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) RouteBuilder(org.apache.camel.builder.RouteBuilder) JndiContext(org.apache.camel.util.jndi.JndiContext) ProcessorEndpoint(org.apache.camel.impl.ProcessorEndpoint) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Aggregations

CamelContext (org.apache.camel.CamelContext)1 RouteBuilder (org.apache.camel.builder.RouteBuilder)1 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)1 JndiRegistry (org.apache.camel.impl.JndiRegistry)1 ProcessorEndpoint (org.apache.camel.impl.ProcessorEndpoint)1 JndiContext (org.apache.camel.util.jndi.JndiContext)1