
com.deblock.cucumber.datatable.runtime.FieldResolverServiceLoader Maven / Gradle / Ivy
package com.deblock.cucumber.datatable.runtime;
import com.deblock.cucumber.datatable.mapper.Options;
import com.deblock.cucumber.datatable.mapper.datatable.FieldResolver;
import java.util.function.Supplier;
public class FieldResolverServiceLoader extends AbstractServiceLoader {
private final ColumnNameBuilderServiceLoader columnNameBuilderServiceLoader;
public FieldResolverServiceLoader(Options options, Supplier classLoaderSupplier, ColumnNameBuilderServiceLoader columnNameBuilderServiceLoader) {
super(FieldResolver.class, options.getFieldResolverClass(), classLoaderSupplier);
this.columnNameBuilderServiceLoader = columnNameBuilderServiceLoader;
}
@Override
public FieldResolver loadService() {
FieldResolver fieldResolver = super.loadService();
fieldResolver.configure(this.columnNameBuilderServiceLoader.loadService());
return fieldResolver;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy