File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
dataloader-plus-core/src/main/java/me/lokic/dataloaderplus/core Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class DataLoaderTemplate {
1111 private final DataLoaderFactory factory ;
1212
1313
14- public DataLoaderTemplate (TemplateOptions options ) {
14+ public DataLoaderTemplate (TemplateConfig options ) {
1515 this .options = options .getOptions ();
1616 this .factory = options .getFactory ();
1717 }
Original file line number Diff line number Diff line change 11package me .lokic .dataloaderplus .core ;
22
33import lombok .Builder ;
4- import lombok .Getter ;
54import org .dataloader .DataLoaderOptions ;
65
76/**
87 * {@link DataLoaderTemplate} 需要的配置
98 */
10- @ Getter
119@ Builder
12- public class TemplateOptions {
10+ public class TemplateConfig {
1311
1412 private static final DataLoaderOptions DEFAULT_OPTIONS = DataLoaderOptions .newOptions ();
15- public static final DataLoaderFactory DEFAULT_FACTORY = new DataLoaderFactory ();
13+ private static final DataLoaderFactory DEFAULT_FACTORY = new DataLoaderFactory ();
14+
15+
16+ public static final TemplateConfig DEFAULT = TemplateConfig .builder ().build ();
1617
1718 private final DataLoaderOptions options ;
1819 private final DataLoaderFactory factory ;
1920
2021
21- public TemplateOptions (DataLoaderOptions options , DataLoaderFactory factory ) {
22+ private TemplateConfig (DataLoaderOptions options , DataLoaderFactory factory ) {
2223 this .options = options == null ? DEFAULT_OPTIONS : options ;
2324 this .factory = factory == null ? DEFAULT_FACTORY : factory ;
2425 }
You can’t perform that action at this time.
0 commit comments