use of org.apache.camel.quarkus.core.FastFactoryFinderResolver.Builder in project camel-quarkus by apache.
the class CamelProcessor method camelServices.
@BuildStep
void camelServices(ApplicationArchivesBuildItem applicationArchives, List<CamelServicePatternBuildItem> servicePatterns, BuildProducer<CamelServiceBuildItem> camelServices) {
final PathFilter pathFilter = servicePatterns.stream().filter(patterns -> patterns.getDestination() == CamelServiceDestination.DISCOVERY).collect(PathFilter.Builder::new, (builder, patterns) -> builder.patterns(patterns.isInclude(), patterns.getPatterns()), PathFilter.Builder::combine).build();
CamelSupport.services(applicationArchives, pathFilter).forEach(camelServices::produce);
}
Aggregations