use of org.apache.camel.quarkus.core.deployment.spi.CamelRuntimeBeanBuildItem in project camel-quarkus by apache.
the class SupportMongoDBProcessor method registerCamelMongoClientProducers.
@BuildStep
void registerCamelMongoClientProducers(List<MongoClientBuildItem> mongoClients, BuildProducer<CamelRuntimeBeanBuildItem> runtimeBeans) {
for (MongoClientBuildItem mongoClient : mongoClients) {
String clientName = getMongoClientName(mongoClient.getName());
runtimeBeans.produce(new CamelRuntimeBeanBuildItem(clientName, "com.mongodb.client.MongoClient", mongoClient.getClient()));
}
}
Aggregations