java.lang.Object
org.springframework.integration.camel.dsl.Camel

public final class Camel extends Object
Factory class for Apache Camel components DSL.
Since:
6.0
Author:
Artem Bilan
  • Method Details

    • handler

      public static CamelMessageHandlerSpec handler()
      Create an instance of CamelMessageHandlerSpec in a ExchangePattern.InOnly mode.
      Returns:
      the spec.
    • handler

      public static CamelMessageHandlerSpec handler(org.apache.camel.ProducerTemplate producerTemplate)
      Create an instance of CamelMessageHandlerSpec for the provided ProducerTemplate in a ExchangePattern.InOnly mode.
      Parameters:
      producerTemplate - the ProducerTemplate to use.
      Returns:
      the spec.
    • gateway

      public static CamelMessageHandlerSpec gateway()
      Create an instance of CamelMessageHandlerSpec in a ExchangePattern.InOut mode.
      Returns:
      the spec.
    • gateway

      public static CamelMessageHandlerSpec gateway(org.apache.camel.ProducerTemplate producerTemplate)
      Create an instance of CamelMessageHandlerSpec for the provided ProducerTemplate in a ExchangePattern.InOut mode.
      Parameters:
      producerTemplate - the ProducerTemplate to use.
      Returns:
      the spec.
    • route

      public static CamelMessageHandlerSpec route(org.apache.camel.builder.LambdaRouteBuilder route)
      Create an instance of CamelMessageHandlerSpec for the provided LambdaRouteBuilder in a ExchangePattern.InOut mode. The CamelContext is fetched as a bean from the application context.
      Parameters:
      route - the LambdaRouteBuilder to use.
      Returns:
      the spec.