formatting
[yosql.git] / yosql-codegen / src / main / java / wtf / metio / yosql / codegen / files / MethodApiConfigurer.java
blob2cc09b59c74e168b5ac32dceb1a3cf52fe187623
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 /**
13 * Handles the configuration of method APIs, e.g. whether batch methods should be generated.
15 * @see DefaultSqlConfigurationFactory
17 @FunctionalInterface
18 public interface MethodApiConfigurer {
20 /**
21 * Configures which APIs should be generated for the given configuration.
23 * @param configuration The original configuration to adapt.
24 * @return An adapted version of the original.
26 SqlConfiguration configureApis(SqlConfiguration configuration);