org.apache.camel.Produce Java Examples
The following examples show how to use
org.apache.camel.Produce.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CamelProducers.java From camel-quarkus with Apache License 2.0 | 5 votes |
@Produces ProducerTemplate camelProducerTemplate(InjectionPoint injectionPoint) { final ProducerTemplate template = this.context.createProducerTemplate(); final Produce produce = injectionPoint.getAnnotated().getAnnotation(Produce.class); if (ObjectHelper.isNotEmpty(produce) && ObjectHelper.isNotEmpty(produce.value())) { template.setDefaultEndpointUri(produce.value()); } return template; }
Example #2
Source File: CamelProducers.java From camel-quarkus with Apache License 2.0 | 5 votes |
@Produces FluentProducerTemplate camelFluentProducerTemplate(InjectionPoint injectionPoint) { final FluentProducerTemplate template = this.context.createFluentProducerTemplate(); final Produce produce = injectionPoint.getAnnotated().getAnnotation(Produce.class); if (ObjectHelper.isNotEmpty(produce) && ObjectHelper.isNotEmpty(produce.value())) { template.setDefaultEndpointUri(produce.value()); } return template; }