File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed
src/main/java/io/jbock/simple/processor Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id(' java' )
33 id(' maven-publish' )
4- id(' com.github.johnrengelman.shadow' ) version(' 7 .1.2 ' )
4+ id(' com.github.johnrengelman.shadow' ) version(' 8 .1.1 ' )
55 id(' signing' )
66}
77
@@ -55,7 +55,7 @@ dependencies {
5555 implementation(' io.github.jbock-java:javapoet:1.15' )
5656 implementation(' io.github.jbock-java:auto-common:1.2.3' )
5757 shadow(simple_component)
58- annotationProcessor(' io.github.jbock-java:simple-component-compiler:1.013 ' )
58+ annotationProcessor(' io.github.jbock-java:simple-component-compiler:1.014 ' )
5959 testImplementation(' io.github.jbock-java:compile-testing:0.19.12' )
6060 testImplementation(' org.junit.jupiter:junit-jupiter:5.9.1' )
6161 testImplementation(' org.mockito:mockito-core:4.8.0' )
Original file line number Diff line number Diff line change 1111@ Component
1212public interface ContextComponent {
1313
14- @ Component .Factory
15- interface Factory {
16- ContextComponent create (
17- ComponentElement component ,
18- TypeTool tool ,
19- InjectBindingFactory injectBindingFactory ,
20- KeyFactory keyFactory );
14+ @ Component .Builder
15+ interface Builder {
16+ Builder componentElement (ComponentElement componentElement );
17+
18+ Builder tool (TypeTool tool );
19+
20+ Builder injectBindingFactory (InjectBindingFactory injectBindingFactory );
21+
22+ Builder keyFactory (KeyFactory keyFactory );
23+
24+ ContextComponent build ();
2125 }
2226
2327 static ContextComponent create (
2428 ComponentElement component ,
2529 TypeTool tool ,
2630 InjectBindingFactory injectBindingFactory ,
2731 KeyFactory keyFactory ) {
28- return ContextComponent_Impl .factory ().create (
29- component ,
30- tool ,
31- injectBindingFactory ,
32- keyFactory );
32+ return ContextComponent_Impl .builder ()
33+ .componentElement (component )
34+ .tool (tool )
35+ .injectBindingFactory (injectBindingFactory )
36+ .keyFactory (keyFactory )
37+ .build ();
3338 }
3439
3540 Generator generator ();
You can’t perform that action at this time.
0 commit comments