fix #123 allow to specify extra annotations on repositories/methods
[yosql.git] / yosql-codegen / src / main / java / wtf / metio / yosql / codegen / files / MethodParameterConfigurer.java
blob332263e18f161452728cb7006d190a99858e8761
1 /*
2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
8 package wtf.metio.yosql.codegen.files;
10 import wtf.metio.yosql.models.immutables.SqlConfiguration;
12 import java.nio.file.Path;
13 import java.util.List;
14 import java.util.Map;
16 /**
17 * Handles the configuration of method parameters, e.g. which type and index they have.
19 * @see DefaultSqlConfigurationFactory
21 @FunctionalInterface
22 public interface MethodParameterConfigurer {
24 /**
25 * Configures method parameters.
27 * @param configuration The original configuration to adapt.
28 * @return An adapted version of the original.
30 SqlConfiguration configureParameters(SqlConfiguration configuration, Path source, Map<String, List<Integer>> parameterIndices);