use of org.apache.camel.component.knative.http.KnativeHttpProducerFactory in project camel-k-runtime by apache.
the class KnativeProducerRecorder method createKnativeProducerFactoryCustomizer.
public RuntimeValue<ComponentCustomizer> createKnativeProducerFactoryCustomizer(Supplier<Vertx> vertx) {
KnativeHttpProducerFactory factory = new KnativeHttpProducerFactory();
factory.setVertx(vertx.get());
ComponentCustomizer cf = new ComponentCustomizer() {
@Override
public void configure(String name, Component target) {
if (target instanceof KnativeComponent) {
((KnativeComponent) target).setProducerFactory(factory);
}
}
};
return new RuntimeValue<>(cf);
}
Aggregations