Search in sources :

Example 1 with DataFormatBinding

use of org.apache.camel.processor.binding.DataFormatBinding in project camel by apache.

the class JacksonBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonXMLDataFormat format = new JacksonXMLDataFormat(TestPojo.class);
    context.bind("jsonmq", new BindingComponent(new DataFormatBinding(format), "file:target/"));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding) BindingComponent(org.apache.camel.component.binding.BindingComponent)

Example 2 with DataFormatBinding

use of org.apache.camel.processor.binding.DataFormatBinding in project camel by apache.

the class JacksonBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonDataFormat format = new JacksonDataFormat(TestPojo.class);
    context.bind("jsonmq", new BindingComponent(new DataFormatBinding(format), "file:target/"));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding) BindingComponent(org.apache.camel.component.binding.BindingComponent)

Example 3 with DataFormatBinding

use of org.apache.camel.processor.binding.DataFormatBinding in project camel by apache.

the class JacksonNameBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonDataFormat format = new JacksonDataFormat(TestPojo.class);
    context.bind("jackson", new DataFormatBinding(format));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding)

Example 4 with DataFormatBinding

use of org.apache.camel.processor.binding.DataFormatBinding in project camel by apache.

the class JacksonNameBindingTest method createJndiContext.

@Override
protected Context createJndiContext() throws Exception {
    Context context = super.createJndiContext();
    JacksonXMLDataFormat format = new JacksonXMLDataFormat(TestPojo.class);
    context.bind("jackson", new DataFormatBinding(format));
    return context;
}
Also used : Context(javax.naming.Context) DataFormatBinding(org.apache.camel.processor.binding.DataFormatBinding)

Aggregations

Context (javax.naming.Context)4 DataFormatBinding (org.apache.camel.processor.binding.DataFormatBinding)4 BindingComponent (org.apache.camel.component.binding.BindingComponent)2