Interface ComponentsBuilderFactory


@Generated("org.apache.camel.maven.packaging.ComponentDslMojo") public interface ComponentsBuilderFactory
Component DSL builder. You can build a component as follows:
 KafkaComponent kafka =
 ComponentBuilderFactory.kafka().setBrokers("{{host:port}}").build();
 
This creates a new Kafka component, but often you want to register the component to CamelContext, which can be done as follows:
 ComponentBuilderFactory.kafka().setBrokers("{{host:port}}").register(camelContext, "kafka");
 
This configures and registers the component to CamelContext with the name kafka. If you have separate Kafka brokers you can register more components with their own name:
 ComponentBuilderFactory.kafka().setBrokers("{{host2:port}}").register(camelContext, "kafka2");
 
Generated by camel build tools - do NOT edit this file!