All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kg.component.generator.config.builder.GeneratorBuilder Maven / Gradle / Ivy

There is a newer version: 1.1.26
Show newest version
/*
 * Copyright (c) 2011-2021, baomidou ([email protected]).
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at *

* https://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.kg.component.generator.config.builder; import com.kg.component.generator.config.*; /** * 生成器 Builder * * @author hubin 2021/02/08 * @since 3.5.0 */ public class GeneratorBuilder { /** * 全局配置 * * @return GlobalConfig */ public static GlobalConfig globalConfig() { return new GlobalConfig.Builder().build(); } /** * 全局配置 Builder * * @return GlobalConfig.Builder */ public static GlobalConfig.Builder globalConfigBuilder() { return new GlobalConfig.Builder(); } /** * 包相关的配置项 * * @return PackageConfig */ public static PackageConfig packageConfig() { return new PackageConfig.Builder().build(); } /** * 包相关的配置项 Builder * * @return PackageConfig.Builder */ public static PackageConfig.Builder packageConfigBuilder() { return new PackageConfig.Builder(); } /** * 策略配置项 * * @return StrategyConfig */ public static StrategyConfig strategyConfig() { return new StrategyConfig.Builder().build(); } /** * 策略配置项 Builder * * @return StrategyConfig.Builder */ public static StrategyConfig.Builder strategyConfigBuilder() { return new StrategyConfig.Builder(); } /** * 模板路径配置项 * * @return TemplateConfig */ public static TemplateConfig templateConfig() { return new TemplateConfig.Builder().build(); } /** * 模板路径配置项 Builder * * @return TemplateConfig.Builder */ public static TemplateConfig.Builder templateConfigBuilder() { return new TemplateConfig.Builder(); } /** * 注入配置项 * * @return InjectionConfig */ public static InjectionConfig injectionConfig() { return new InjectionConfig.Builder().build(); } /** * 注入配置项 Builder * * @return InjectionConfig.Builder */ public static InjectionConfig.Builder injectionConfigBuilder() { return new InjectionConfig.Builder(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy