From 1b3c23c70f15eb4ad2b1d64d14993db8f8e05e16 Mon Sep 17 00:00:00 2001 From: Ruslan Ibragimov Date: Mon, 11 Jan 2021 15:01:21 +0300 Subject: [PATCH] Add deep versions --- README.md | 28 +- bootique-deep/build.gradle.kts | 21 + .../java/org/objectstyle/bootique2/Main.java | 10 + .../objectstyle/bootique2/MainCommand.java | 25 + .../org/objectstyle/bootique2/MainModule.java | 629 ++++++++++++++++++ .../services/io.bootique.BQModuleProvider | 1 + cayennedi-deep/build.gradle.kts | 18 + .../java/org/objectstyle/cayenne/Main.java | 12 + .../org/objectstyle/cayenne/MainModule.java | 114 ++++ .../objectstyle/cayenne/ServiceProvider.java | 17 + .../objectstyle/cayenne/ServiceProvider1.java | 17 + .../cayenne/ServiceProvider10.java | 17 + .../cayenne/ServiceProvider100.java | 17 + .../cayenne/ServiceProvider101.java | 14 + .../cayenne/ServiceProvider11.java | 17 + .../cayenne/ServiceProvider12.java | 17 + .../cayenne/ServiceProvider13.java | 17 + .../cayenne/ServiceProvider14.java | 17 + .../cayenne/ServiceProvider15.java | 17 + .../cayenne/ServiceProvider16.java | 17 + .../cayenne/ServiceProvider17.java | 17 + .../cayenne/ServiceProvider18.java | 17 + .../cayenne/ServiceProvider19.java | 17 + .../objectstyle/cayenne/ServiceProvider2.java | 17 + .../cayenne/ServiceProvider20.java | 17 + .../cayenne/ServiceProvider21.java | 17 + .../cayenne/ServiceProvider22.java | 17 + .../cayenne/ServiceProvider23.java | 17 + .../cayenne/ServiceProvider24.java | 17 + .../cayenne/ServiceProvider25.java | 17 + .../cayenne/ServiceProvider26.java | 17 + .../cayenne/ServiceProvider27.java | 17 + .../cayenne/ServiceProvider28.java | 17 + .../cayenne/ServiceProvider29.java | 17 + .../objectstyle/cayenne/ServiceProvider3.java | 17 + .../cayenne/ServiceProvider30.java | 17 + .../cayenne/ServiceProvider31.java | 17 + .../cayenne/ServiceProvider32.java | 17 + .../cayenne/ServiceProvider33.java | 17 + .../cayenne/ServiceProvider34.java | 17 + .../cayenne/ServiceProvider35.java | 17 + .../cayenne/ServiceProvider36.java | 17 + .../cayenne/ServiceProvider37.java | 17 + .../cayenne/ServiceProvider38.java | 17 + .../cayenne/ServiceProvider39.java | 17 + .../objectstyle/cayenne/ServiceProvider4.java | 17 + .../cayenne/ServiceProvider40.java | 17 + .../cayenne/ServiceProvider41.java | 17 + .../cayenne/ServiceProvider42.java | 17 + .../cayenne/ServiceProvider43.java | 17 + .../cayenne/ServiceProvider44.java | 17 + .../cayenne/ServiceProvider45.java | 17 + .../cayenne/ServiceProvider46.java | 17 + .../cayenne/ServiceProvider47.java | 17 + .../cayenne/ServiceProvider48.java | 17 + .../cayenne/ServiceProvider49.java | 17 + .../objectstyle/cayenne/ServiceProvider5.java | 17 + .../cayenne/ServiceProvider50.java | 17 + .../cayenne/ServiceProvider51.java | 17 + .../cayenne/ServiceProvider52.java | 17 + .../cayenne/ServiceProvider53.java | 17 + .../cayenne/ServiceProvider54.java | 17 + .../cayenne/ServiceProvider55.java | 17 + .../cayenne/ServiceProvider56.java | 17 + .../cayenne/ServiceProvider57.java | 17 + .../cayenne/ServiceProvider58.java | 17 + .../cayenne/ServiceProvider59.java | 17 + .../objectstyle/cayenne/ServiceProvider6.java | 17 + .../cayenne/ServiceProvider60.java | 17 + .../cayenne/ServiceProvider61.java | 17 + .../cayenne/ServiceProvider62.java | 17 + .../cayenne/ServiceProvider63.java | 17 + .../cayenne/ServiceProvider64.java | 17 + .../cayenne/ServiceProvider65.java | 17 + .../cayenne/ServiceProvider66.java | 17 + .../cayenne/ServiceProvider67.java | 17 + .../cayenne/ServiceProvider68.java | 17 + .../cayenne/ServiceProvider69.java | 17 + .../objectstyle/cayenne/ServiceProvider7.java | 17 + .../cayenne/ServiceProvider70.java | 17 + .../cayenne/ServiceProvider71.java | 17 + .../cayenne/ServiceProvider72.java | 17 + .../cayenne/ServiceProvider73.java | 17 + .../cayenne/ServiceProvider74.java | 17 + .../cayenne/ServiceProvider75.java | 17 + .../cayenne/ServiceProvider76.java | 17 + .../cayenne/ServiceProvider77.java | 17 + .../cayenne/ServiceProvider78.java | 17 + .../cayenne/ServiceProvider79.java | 17 + .../objectstyle/cayenne/ServiceProvider8.java | 17 + .../cayenne/ServiceProvider80.java | 17 + .../cayenne/ServiceProvider81.java | 17 + .../cayenne/ServiceProvider82.java | 17 + .../cayenne/ServiceProvider83.java | 17 + .../cayenne/ServiceProvider84.java | 17 + .../cayenne/ServiceProvider85.java | 17 + .../cayenne/ServiceProvider86.java | 17 + .../cayenne/ServiceProvider87.java | 17 + .../cayenne/ServiceProvider88.java | 17 + .../cayenne/ServiceProvider89.java | 17 + .../objectstyle/cayenne/ServiceProvider9.java | 17 + .../cayenne/ServiceProvider90.java | 17 + .../cayenne/ServiceProvider91.java | 17 + .../cayenne/ServiceProvider92.java | 17 + .../cayenne/ServiceProvider93.java | 17 + .../cayenne/ServiceProvider94.java | 17 + .../cayenne/ServiceProvider95.java | 17 + .../cayenne/ServiceProvider96.java | 17 + .../cayenne/ServiceProvider97.java | 17 + .../cayenne/ServiceProvider98.java | 17 + .../cayenne/ServiceProvider99.java | 17 + .../src/test/kotlin/GenerateBootique.kt | 12 + .../src/test/kotlin/GenerateCayenne.kt | 40 ++ common-deep/src/test/kotlin/GenerateGuice.kt | 12 + common-deep/src/test/kotlin/GenerateKodein.kt | 7 + common-deep/src/test/kotlin/GenerateKoin.kt | 7 + common-deep/src/test/kotlin/GenerateKomodo.kt | 7 + common-deep/src/test/kotlin/GenerateOwb.kt | 12 + common-deep/src/test/kotlin/GenerateSpring.kt | 11 + .../src/test/kotlin/GenerateSpringboot.kt | 11 + guice-deep/build.gradle.kts | 18 + .../main/java/org/objectstyle/guice/Main.java | 12 + .../org/objectstyle/guice/MainModule.java | 627 +++++++++++++++++ guice/build.gradle.kts | 2 +- kodein-deep/build.gradle.kts | 23 + .../src/main/kotlin/io/heapy/kodein/Main.kt | 117 ++++ koin-deep/build.gradle.kts | 19 + .../src/main/kotlin/io/heapy/koin/Main.kt | 116 ++++ komodo-deep/build.gradle.kts | 26 + .../src/main/java/io/heapy/komodo/Main.kt | 118 ++++ owb-deep/build.gradle.kts | 24 + .../main/java/org/objectstyle/owb/Main.java | 21 + .../java/org/objectstyle/owb/MainModule.java | 623 +++++++++++++++++ settings.gradle.kts | 10 +- spring-deep/build.gradle.kts | 18 + .../java/org/objectstyle/spring/Main.java | 525 +++++++++++++++ springboot-deep/build.gradle.kts | 18 + .../main/java/io/heapy/springboot/Config.java | 518 +++++++++++++++ .../main/java/io/heapy/springboot/Main.java | 12 + .../main/java/io/heapy/springboot/Runner.java | 20 + 140 files changed, 5559 insertions(+), 16 deletions(-) create mode 100644 bootique-deep/build.gradle.kts create mode 100644 bootique-deep/src/main/java/org/objectstyle/bootique2/Main.java create mode 100644 bootique-deep/src/main/java/org/objectstyle/bootique2/MainCommand.java create mode 100644 bootique-deep/src/main/java/org/objectstyle/bootique2/MainModule.java create mode 100644 bootique-deep/src/main/resources/META-INF/services/io.bootique.BQModuleProvider create mode 100644 cayennedi-deep/build.gradle.kts create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/Main.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/MainModule.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider1.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider10.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider100.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider101.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider11.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider12.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider13.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider14.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider15.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider16.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider17.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider18.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider19.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider2.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider20.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider21.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider22.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider23.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider24.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider25.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider26.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider27.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider28.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider29.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider3.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider30.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider31.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider32.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider33.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider34.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider35.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider36.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider37.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider38.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider39.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider4.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider40.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider41.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider42.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider43.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider44.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider45.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider46.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider47.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider48.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider49.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider5.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider50.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider51.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider52.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider53.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider54.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider55.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider56.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider57.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider58.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider59.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider6.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider60.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider61.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider62.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider63.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider64.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider65.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider66.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider67.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider68.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider69.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider7.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider70.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider71.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider72.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider73.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider74.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider75.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider76.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider77.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider78.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider79.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider8.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider80.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider81.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider82.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider83.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider84.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider85.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider86.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider87.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider88.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider89.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider9.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider90.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider91.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider92.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider93.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider94.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider95.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider96.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider97.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider98.java create mode 100644 cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider99.java create mode 100644 common-deep/src/test/kotlin/GenerateBootique.kt create mode 100644 common-deep/src/test/kotlin/GenerateCayenne.kt create mode 100644 common-deep/src/test/kotlin/GenerateGuice.kt create mode 100644 common-deep/src/test/kotlin/GenerateKodein.kt create mode 100644 common-deep/src/test/kotlin/GenerateKoin.kt create mode 100644 common-deep/src/test/kotlin/GenerateKomodo.kt create mode 100644 common-deep/src/test/kotlin/GenerateOwb.kt create mode 100644 common-deep/src/test/kotlin/GenerateSpring.kt create mode 100644 common-deep/src/test/kotlin/GenerateSpringboot.kt create mode 100644 guice-deep/build.gradle.kts create mode 100644 guice-deep/src/main/java/org/objectstyle/guice/Main.java create mode 100644 guice-deep/src/main/java/org/objectstyle/guice/MainModule.java create mode 100644 kodein-deep/build.gradle.kts create mode 100644 kodein-deep/src/main/kotlin/io/heapy/kodein/Main.kt create mode 100644 koin-deep/build.gradle.kts create mode 100644 koin-deep/src/main/kotlin/io/heapy/koin/Main.kt create mode 100644 komodo-deep/build.gradle.kts create mode 100644 komodo-deep/src/main/java/io/heapy/komodo/Main.kt create mode 100644 owb-deep/build.gradle.kts create mode 100644 owb-deep/src/main/java/org/objectstyle/owb/Main.java create mode 100644 owb-deep/src/main/java/org/objectstyle/owb/MainModule.java create mode 100644 spring-deep/build.gradle.kts create mode 100644 spring-deep/src/main/java/org/objectstyle/spring/Main.java create mode 100644 springboot-deep/build.gradle.kts create mode 100644 springboot-deep/src/main/java/io/heapy/springboot/Config.java create mode 100644 springboot-deep/src/main/java/io/heapy/springboot/Main.java create mode 100644 springboot-deep/src/main/java/io/heapy/springboot/Runner.java diff --git a/README.md b/README.md index 47af683..b1abca4 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ find . -name '*.tar' |xargs ls -lh |grep -v original |grep -v common # 2 classes time (for i in {1..10}; do ./baseline/build/install/baseline/bin/baseline; done) -time (for i in {1..10}; do ./bootique2/build/install/bootique2/bin/bootique2; done) +time (for i in {1..10}; do ./bootique/build/install/bootique/bin/bootique; done) time (for i in {1..10}; do ./cayennedi/build/install/cayennedi/bin/cayennedi; done) time (for i in {1..10}; do ./dagger/build/install/dagger/bin/dagger; done) time (for i in {1..10}; do ./guice/build/install/guice/bin/guice; done) @@ -39,7 +39,7 @@ time (for i in {1..10}; do ./kodein/build/install/kodein/bin/kodein; done) # 100 classes time (for i in {1..10}; do ./baseline-deep/build/install/baseline-deep/bin/baseline-deep; done) -time (for i in {1..10}; do ./bootique2-deep/build/install/bootique2-deep/bin/bootique2-deep; done) +time (for i in {1..10}; do ./bootique-deep/build/install/bootique-deep/bin/bootique-deep; done) time (for i in {1..10}; do ./cayennedi-deep/build/install/cayennedi-deep/bin/cayennedi-deep; done) time (for i in {1..10}; do ./dagger-deep/build/install/dagger-deep/bin/dagger-deep; done) time (for i in {1..10}; do ./guice-deep/build/install/guice-deep/bin/guice-deep; done) @@ -55,7 +55,7 @@ time (for i in {1..10}; do ./kodein-deep/build/install/kodein-deep/bin/kodein-de # Lines of code for 2 classes cloc ./baseline/src -cloc ./bootique2/src +cloc ./bootique/src cloc ./cayennedi/src cloc ./dagger/src/main/java cloc ./guice/src @@ -69,7 +69,7 @@ cloc ./kodein/src # Lines of code for 100 classes cloc ./baseline-deep/src -cloc ./bootique2-deep/src +cloc ./bootique-deep/src cloc ./cayennedi-deep/src cloc ./dagger-deep/src/main/java cloc ./guice-deep/src @@ -91,7 +91,7 @@ cloc ./kodein-deep/src |Koin|1.8|2.56|16| |Kodein|2.4|2.93|17| |Bootique|4.2|4.31|52| -|Guice|5.4|6.22|33| +|Guice|5.3|6.51|33| |Komodo|6.4|7.56|17| |Spring|5.5|8.36|23| |OpenWebBeans|3.0|10.02|35| @@ -102,12 +102,12 @@ cloc ./kodein-deep/src |----|----|----|----| |Baseline|1.8|2.28|107| |Dagger|2.0|2.70|534| -|Cayenne DI|||| -|Koin|||| -|Kodein|||| -|Bootique|||| -|Guice|||| -|Komodo|||| -|Spring|||| -|OpenWebBeans|||| -|Spring Boot|||| +|Cayenne DI|2.0|3.70|1444| +|Koin|2.1|3.92|113| +|Kodein|2.9|5.58|114| +|Bootique|4.3|5.79|549| +|Guice|5.4|8.70|530| +|Spring|5.5|12.81|420| +|Komodo|6.6|12.87|114| +|OpenWebBeans|3.2|16.16|532| +|Spring Boot|9.4|30.42|439| diff --git a/bootique-deep/build.gradle.kts b/bootique-deep/build.gradle.kts new file mode 100644 index 0000000..e314be4 --- /dev/null +++ b/bootique-deep/build.gradle.kts @@ -0,0 +1,21 @@ +plugins { + java + application +} + +application { + mainClass.set("org.objectstyle.bootique2.Main") +} + +repositories { + jcenter() + maven { + url = uri("https://maven.objectstyle.org/nexus/content/repositories/bootique-snapshots/") + } +} + +dependencies { + implementation(project(":common-deep")) + + implementation("io.bootique:bootique:2.0-SNAPSHOT") +} diff --git a/bootique-deep/src/main/java/org/objectstyle/bootique2/Main.java b/bootique-deep/src/main/java/org/objectstyle/bootique2/Main.java new file mode 100644 index 0000000..25b140e --- /dev/null +++ b/bootique-deep/src/main/java/org/objectstyle/bootique2/Main.java @@ -0,0 +1,10 @@ +package org.objectstyle.bootique2; + +import io.bootique.Bootique; + +public class Main { + + public static void main(String[] args) { + Bootique.app(args).autoLoadModules().exec().exit(); + } +} diff --git a/bootique-deep/src/main/java/org/objectstyle/bootique2/MainCommand.java b/bootique-deep/src/main/java/org/objectstyle/bootique2/MainCommand.java new file mode 100644 index 0000000..99e6d59 --- /dev/null +++ b/bootique-deep/src/main/java/org/objectstyle/bootique2/MainCommand.java @@ -0,0 +1,25 @@ +package org.objectstyle.bootique2; + +import io.bootique.cli.Cli; +import io.bootique.command.Command; +import io.bootique.command.CommandOutcome; +import io.heapy.sample.common2.Service; + +import javax.inject.Inject; +import javax.inject.Provider; + +public class MainCommand implements Command { + + private Provider serviceProvider; + + @Inject + public MainCommand(Provider serviceProvider) { + this.serviceProvider = serviceProvider; + } + + @Override + public CommandOutcome run(Cli cli) { + System.out.println(serviceProvider.get().name()); + return CommandOutcome.succeeded(); + } +} diff --git a/bootique-deep/src/main/java/org/objectstyle/bootique2/MainModule.java b/bootique-deep/src/main/java/org/objectstyle/bootique2/MainModule.java new file mode 100644 index 0000000..7dd00f5 --- /dev/null +++ b/bootique-deep/src/main/java/org/objectstyle/bootique2/MainModule.java @@ -0,0 +1,629 @@ +package org.objectstyle.bootique2; + +import io.bootique.BQCoreModule; +import io.bootique.BaseModule; +import io.bootique.di.Binder; +import io.bootique.di.Provides; +import io.heapy.sample.common2.*; + +import javax.inject.Singleton; + +public class MainModule extends BaseModule { + + @Override + public void configure(Binder binder) { + BQCoreModule.extend(binder).setDefaultCommand(MainCommand.class); + } + + @Provides + @Singleton + Service provideService(Service1 service) { + return new DefaultService(service); + } + + @Provides + @Singleton + Service1 provideService1(Service2 service) { + return new DefaultService1(service); + } + + @Provides + @Singleton + Service2 provideService2(Service3 service) { + return new DefaultService2(service); + } + + @Provides + @Singleton + Service3 provideService3(Service4 service) { + return new DefaultService3(service); + } + + @Provides + @Singleton + Service4 provideService4(Service5 service) { + return new DefaultService4(service); + } + + @Provides + @Singleton + Service5 provideService5(Service6 service) { + return new DefaultService5(service); + } + + @Provides + @Singleton + Service6 provideService6(Service7 service) { + return new DefaultService6(service); + } + + @Provides + @Singleton + Service7 provideService7(Service8 service) { + return new DefaultService7(service); + } + + @Provides + @Singleton + Service8 provideService8(Service9 service) { + return new DefaultService8(service); + } + + @Provides + @Singleton + Service9 provideService9(Service10 service) { + return new DefaultService9(service); + } + + @Provides + @Singleton + Service10 provideService10(Service11 service) { + return new DefaultService10(service); + } + + @Provides + @Singleton + Service11 provideService11(Service12 service) { + return new DefaultService11(service); + } + + @Provides + @Singleton + Service12 provideService12(Service13 service) { + return new DefaultService12(service); + } + + @Provides + @Singleton + Service13 provideService13(Service14 service) { + return new DefaultService13(service); + } + + @Provides + @Singleton + Service14 provideService14(Service15 service) { + return new DefaultService14(service); + } + + @Provides + @Singleton + Service15 provideService15(Service16 service) { + return new DefaultService15(service); + } + + @Provides + @Singleton + Service16 provideService16(Service17 service) { + return new DefaultService16(service); + } + + @Provides + @Singleton + Service17 provideService17(Service18 service) { + return new DefaultService17(service); + } + + @Provides + @Singleton + Service18 provideService18(Service19 service) { + return new DefaultService18(service); + } + + @Provides + @Singleton + Service19 provideService19(Service20 service) { + return new DefaultService19(service); + } + + @Provides + @Singleton + Service20 provideService20(Service21 service) { + return new DefaultService20(service); + } + + @Provides + @Singleton + Service21 provideService21(Service22 service) { + return new DefaultService21(service); + } + + @Provides + @Singleton + Service22 provideService22(Service23 service) { + return new DefaultService22(service); + } + + @Provides + @Singleton + Service23 provideService23(Service24 service) { + return new DefaultService23(service); + } + + @Provides + @Singleton + Service24 provideService24(Service25 service) { + return new DefaultService24(service); + } + + @Provides + @Singleton + Service25 provideService25(Service26 service) { + return new DefaultService25(service); + } + + @Provides + @Singleton + Service26 provideService26(Service27 service) { + return new DefaultService26(service); + } + + @Provides + @Singleton + Service27 provideService27(Service28 service) { + return new DefaultService27(service); + } + + @Provides + @Singleton + Service28 provideService28(Service29 service) { + return new DefaultService28(service); + } + + @Provides + @Singleton + Service29 provideService29(Service30 service) { + return new DefaultService29(service); + } + + @Provides + @Singleton + Service30 provideService30(Service31 service) { + return new DefaultService30(service); + } + + @Provides + @Singleton + Service31 provideService31(Service32 service) { + return new DefaultService31(service); + } + + @Provides + @Singleton + Service32 provideService32(Service33 service) { + return new DefaultService32(service); + } + + @Provides + @Singleton + Service33 provideService33(Service34 service) { + return new DefaultService33(service); + } + + @Provides + @Singleton + Service34 provideService34(Service35 service) { + return new DefaultService34(service); + } + + @Provides + @Singleton + Service35 provideService35(Service36 service) { + return new DefaultService35(service); + } + + @Provides + @Singleton + Service36 provideService36(Service37 service) { + return new DefaultService36(service); + } + + @Provides + @Singleton + Service37 provideService37(Service38 service) { + return new DefaultService37(service); + } + + @Provides + @Singleton + Service38 provideService38(Service39 service) { + return new DefaultService38(service); + } + + @Provides + @Singleton + Service39 provideService39(Service40 service) { + return new DefaultService39(service); + } + + @Provides + @Singleton + Service40 provideService40(Service41 service) { + return new DefaultService40(service); + } + + @Provides + @Singleton + Service41 provideService41(Service42 service) { + return new DefaultService41(service); + } + + @Provides + @Singleton + Service42 provideService42(Service43 service) { + return new DefaultService42(service); + } + + @Provides + @Singleton + Service43 provideService43(Service44 service) { + return new DefaultService43(service); + } + + @Provides + @Singleton + Service44 provideService44(Service45 service) { + return new DefaultService44(service); + } + + @Provides + @Singleton + Service45 provideService45(Service46 service) { + return new DefaultService45(service); + } + + @Provides + @Singleton + Service46 provideService46(Service47 service) { + return new DefaultService46(service); + } + + @Provides + @Singleton + Service47 provideService47(Service48 service) { + return new DefaultService47(service); + } + + @Provides + @Singleton + Service48 provideService48(Service49 service) { + return new DefaultService48(service); + } + + @Provides + @Singleton + Service49 provideService49(Service50 service) { + return new DefaultService49(service); + } + + @Provides + @Singleton + Service50 provideService50(Service51 service) { + return new DefaultService50(service); + } + + @Provides + @Singleton + Service51 provideService51(Service52 service) { + return new DefaultService51(service); + } + + @Provides + @Singleton + Service52 provideService52(Service53 service) { + return new DefaultService52(service); + } + + @Provides + @Singleton + Service53 provideService53(Service54 service) { + return new DefaultService53(service); + } + + @Provides + @Singleton + Service54 provideService54(Service55 service) { + return new DefaultService54(service); + } + + @Provides + @Singleton + Service55 provideService55(Service56 service) { + return new DefaultService55(service); + } + + @Provides + @Singleton + Service56 provideService56(Service57 service) { + return new DefaultService56(service); + } + + @Provides + @Singleton + Service57 provideService57(Service58 service) { + return new DefaultService57(service); + } + + @Provides + @Singleton + Service58 provideService58(Service59 service) { + return new DefaultService58(service); + } + + @Provides + @Singleton + Service59 provideService59(Service60 service) { + return new DefaultService59(service); + } + + @Provides + @Singleton + Service60 provideService60(Service61 service) { + return new DefaultService60(service); + } + + @Provides + @Singleton + Service61 provideService61(Service62 service) { + return new DefaultService61(service); + } + + @Provides + @Singleton + Service62 provideService62(Service63 service) { + return new DefaultService62(service); + } + + @Provides + @Singleton + Service63 provideService63(Service64 service) { + return new DefaultService63(service); + } + + @Provides + @Singleton + Service64 provideService64(Service65 service) { + return new DefaultService64(service); + } + + @Provides + @Singleton + Service65 provideService65(Service66 service) { + return new DefaultService65(service); + } + + @Provides + @Singleton + Service66 provideService66(Service67 service) { + return new DefaultService66(service); + } + + @Provides + @Singleton + Service67 provideService67(Service68 service) { + return new DefaultService67(service); + } + + @Provides + @Singleton + Service68 provideService68(Service69 service) { + return new DefaultService68(service); + } + + @Provides + @Singleton + Service69 provideService69(Service70 service) { + return new DefaultService69(service); + } + + @Provides + @Singleton + Service70 provideService70(Service71 service) { + return new DefaultService70(service); + } + + @Provides + @Singleton + Service71 provideService71(Service72 service) { + return new DefaultService71(service); + } + + @Provides + @Singleton + Service72 provideService72(Service73 service) { + return new DefaultService72(service); + } + + @Provides + @Singleton + Service73 provideService73(Service74 service) { + return new DefaultService73(service); + } + + @Provides + @Singleton + Service74 provideService74(Service75 service) { + return new DefaultService74(service); + } + + @Provides + @Singleton + Service75 provideService75(Service76 service) { + return new DefaultService75(service); + } + + @Provides + @Singleton + Service76 provideService76(Service77 service) { + return new DefaultService76(service); + } + + @Provides + @Singleton + Service77 provideService77(Service78 service) { + return new DefaultService77(service); + } + + @Provides + @Singleton + Service78 provideService78(Service79 service) { + return new DefaultService78(service); + } + + @Provides + @Singleton + Service79 provideService79(Service80 service) { + return new DefaultService79(service); + } + + @Provides + @Singleton + Service80 provideService80(Service81 service) { + return new DefaultService80(service); + } + + @Provides + @Singleton + Service81 provideService81(Service82 service) { + return new DefaultService81(service); + } + + @Provides + @Singleton + Service82 provideService82(Service83 service) { + return new DefaultService82(service); + } + + @Provides + @Singleton + Service83 provideService83(Service84 service) { + return new DefaultService83(service); + } + + @Provides + @Singleton + Service84 provideService84(Service85 service) { + return new DefaultService84(service); + } + + @Provides + @Singleton + Service85 provideService85(Service86 service) { + return new DefaultService85(service); + } + + @Provides + @Singleton + Service86 provideService86(Service87 service) { + return new DefaultService86(service); + } + + @Provides + @Singleton + Service87 provideService87(Service88 service) { + return new DefaultService87(service); + } + + @Provides + @Singleton + Service88 provideService88(Service89 service) { + return new DefaultService88(service); + } + + @Provides + @Singleton + Service89 provideService89(Service90 service) { + return new DefaultService89(service); + } + + @Provides + @Singleton + Service90 provideService90(Service91 service) { + return new DefaultService90(service); + } + + @Provides + @Singleton + Service91 provideService91(Service92 service) { + return new DefaultService91(service); + } + + @Provides + @Singleton + Service92 provideService92(Service93 service) { + return new DefaultService92(service); + } + + @Provides + @Singleton + Service93 provideService93(Service94 service) { + return new DefaultService93(service); + } + + @Provides + @Singleton + Service94 provideService94(Service95 service) { + return new DefaultService94(service); + } + + @Provides + @Singleton + Service95 provideService95(Service96 service) { + return new DefaultService95(service); + } + + @Provides + @Singleton + Service96 provideService96(Service97 service) { + return new DefaultService96(service); + } + + @Provides + @Singleton + Service97 provideService97(Service98 service) { + return new DefaultService97(service); + } + + @Provides + @Singleton + Service98 provideService98(Service99 service) { + return new DefaultService98(service); + } + + @Provides + @Singleton + Service99 provideService99(Service100 service) { + return new DefaultService99(service); + } + + @Provides + @Singleton + Service100 provideService100(Service101 service) { + return new DefaultService100(service); + } + + @Provides + @Singleton + Service101 provideService101() { + return new DefaultService101(); + } +} diff --git a/bootique-deep/src/main/resources/META-INF/services/io.bootique.BQModuleProvider b/bootique-deep/src/main/resources/META-INF/services/io.bootique.BQModuleProvider new file mode 100644 index 0000000..b37ea2f --- /dev/null +++ b/bootique-deep/src/main/resources/META-INF/services/io.bootique.BQModuleProvider @@ -0,0 +1 @@ +org.objectstyle.bootique2.MainModule \ No newline at end of file diff --git a/cayennedi-deep/build.gradle.kts b/cayennedi-deep/build.gradle.kts new file mode 100644 index 0000000..b989140 --- /dev/null +++ b/cayennedi-deep/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + java + application +} + +application { + mainClass.set("org.objectstyle.cayenne.Main") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation("org.apache.cayenne:cayenne-di:4.1.RC2") +} diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/Main.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/Main.java new file mode 100644 index 0000000..234d921 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/Main.java @@ -0,0 +1,12 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.Service; +import org.apache.cayenne.di.DIBootstrap; + +public class Main { + + public static void main(String[] args) { + Service s = DIBootstrap.createInjector(new MainModule()).getInstance(Service.class); + System.out.println(s.name()); + } +} diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/MainModule.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/MainModule.java new file mode 100644 index 0000000..f54e6aa --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/MainModule.java @@ -0,0 +1,114 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.Binder; +import org.apache.cayenne.di.Module; + +public class MainModule implements Module { + + @Override + public void configure(Binder binder) { + binder.bind(Service.class).toProvider(ServiceProvider.class); + binder.bind(Service1.class).toProvider(ServiceProvider1.class); + binder.bind(Service2.class).toProvider(ServiceProvider2.class); + binder.bind(Service3.class).toProvider(ServiceProvider3.class); + binder.bind(Service4.class).toProvider(ServiceProvider4.class); + binder.bind(Service5.class).toProvider(ServiceProvider5.class); + binder.bind(Service6.class).toProvider(ServiceProvider6.class); + binder.bind(Service7.class).toProvider(ServiceProvider7.class); + binder.bind(Service8.class).toProvider(ServiceProvider8.class); + binder.bind(Service9.class).toProvider(ServiceProvider9.class); + binder.bind(Service10.class).toProvider(ServiceProvider10.class); + binder.bind(Service11.class).toProvider(ServiceProvider11.class); + binder.bind(Service12.class).toProvider(ServiceProvider12.class); + binder.bind(Service13.class).toProvider(ServiceProvider13.class); + binder.bind(Service14.class).toProvider(ServiceProvider14.class); + binder.bind(Service15.class).toProvider(ServiceProvider15.class); + binder.bind(Service16.class).toProvider(ServiceProvider16.class); + binder.bind(Service17.class).toProvider(ServiceProvider17.class); + binder.bind(Service18.class).toProvider(ServiceProvider18.class); + binder.bind(Service19.class).toProvider(ServiceProvider19.class); + binder.bind(Service20.class).toProvider(ServiceProvider20.class); + binder.bind(Service21.class).toProvider(ServiceProvider21.class); + binder.bind(Service22.class).toProvider(ServiceProvider22.class); + binder.bind(Service23.class).toProvider(ServiceProvider23.class); + binder.bind(Service24.class).toProvider(ServiceProvider24.class); + binder.bind(Service25.class).toProvider(ServiceProvider25.class); + binder.bind(Service26.class).toProvider(ServiceProvider26.class); + binder.bind(Service27.class).toProvider(ServiceProvider27.class); + binder.bind(Service28.class).toProvider(ServiceProvider28.class); + binder.bind(Service29.class).toProvider(ServiceProvider29.class); + binder.bind(Service30.class).toProvider(ServiceProvider30.class); + binder.bind(Service31.class).toProvider(ServiceProvider31.class); + binder.bind(Service32.class).toProvider(ServiceProvider32.class); + binder.bind(Service33.class).toProvider(ServiceProvider33.class); + binder.bind(Service34.class).toProvider(ServiceProvider34.class); + binder.bind(Service35.class).toProvider(ServiceProvider35.class); + binder.bind(Service36.class).toProvider(ServiceProvider36.class); + binder.bind(Service37.class).toProvider(ServiceProvider37.class); + binder.bind(Service38.class).toProvider(ServiceProvider38.class); + binder.bind(Service39.class).toProvider(ServiceProvider39.class); + binder.bind(Service40.class).toProvider(ServiceProvider40.class); + binder.bind(Service41.class).toProvider(ServiceProvider41.class); + binder.bind(Service42.class).toProvider(ServiceProvider42.class); + binder.bind(Service43.class).toProvider(ServiceProvider43.class); + binder.bind(Service44.class).toProvider(ServiceProvider44.class); + binder.bind(Service45.class).toProvider(ServiceProvider45.class); + binder.bind(Service46.class).toProvider(ServiceProvider46.class); + binder.bind(Service47.class).toProvider(ServiceProvider47.class); + binder.bind(Service48.class).toProvider(ServiceProvider48.class); + binder.bind(Service49.class).toProvider(ServiceProvider49.class); + binder.bind(Service50.class).toProvider(ServiceProvider50.class); + binder.bind(Service51.class).toProvider(ServiceProvider51.class); + binder.bind(Service52.class).toProvider(ServiceProvider52.class); + binder.bind(Service53.class).toProvider(ServiceProvider53.class); + binder.bind(Service54.class).toProvider(ServiceProvider54.class); + binder.bind(Service55.class).toProvider(ServiceProvider55.class); + binder.bind(Service56.class).toProvider(ServiceProvider56.class); + binder.bind(Service57.class).toProvider(ServiceProvider57.class); + binder.bind(Service58.class).toProvider(ServiceProvider58.class); + binder.bind(Service59.class).toProvider(ServiceProvider59.class); + binder.bind(Service60.class).toProvider(ServiceProvider60.class); + binder.bind(Service61.class).toProvider(ServiceProvider61.class); + binder.bind(Service62.class).toProvider(ServiceProvider62.class); + binder.bind(Service63.class).toProvider(ServiceProvider63.class); + binder.bind(Service64.class).toProvider(ServiceProvider64.class); + binder.bind(Service65.class).toProvider(ServiceProvider65.class); + binder.bind(Service66.class).toProvider(ServiceProvider66.class); + binder.bind(Service67.class).toProvider(ServiceProvider67.class); + binder.bind(Service68.class).toProvider(ServiceProvider68.class); + binder.bind(Service69.class).toProvider(ServiceProvider69.class); + binder.bind(Service70.class).toProvider(ServiceProvider70.class); + binder.bind(Service71.class).toProvider(ServiceProvider71.class); + binder.bind(Service72.class).toProvider(ServiceProvider72.class); + binder.bind(Service73.class).toProvider(ServiceProvider73.class); + binder.bind(Service74.class).toProvider(ServiceProvider74.class); + binder.bind(Service75.class).toProvider(ServiceProvider75.class); + binder.bind(Service76.class).toProvider(ServiceProvider76.class); + binder.bind(Service77.class).toProvider(ServiceProvider77.class); + binder.bind(Service78.class).toProvider(ServiceProvider78.class); + binder.bind(Service79.class).toProvider(ServiceProvider79.class); + binder.bind(Service80.class).toProvider(ServiceProvider80.class); + binder.bind(Service81.class).toProvider(ServiceProvider81.class); + binder.bind(Service82.class).toProvider(ServiceProvider82.class); + binder.bind(Service83.class).toProvider(ServiceProvider83.class); + binder.bind(Service84.class).toProvider(ServiceProvider84.class); + binder.bind(Service85.class).toProvider(ServiceProvider85.class); + binder.bind(Service86.class).toProvider(ServiceProvider86.class); + binder.bind(Service87.class).toProvider(ServiceProvider87.class); + binder.bind(Service88.class).toProvider(ServiceProvider88.class); + binder.bind(Service89.class).toProvider(ServiceProvider89.class); + binder.bind(Service90.class).toProvider(ServiceProvider90.class); + binder.bind(Service91.class).toProvider(ServiceProvider91.class); + binder.bind(Service92.class).toProvider(ServiceProvider92.class); + binder.bind(Service93.class).toProvider(ServiceProvider93.class); + binder.bind(Service94.class).toProvider(ServiceProvider94.class); + binder.bind(Service95.class).toProvider(ServiceProvider95.class); + binder.bind(Service96.class).toProvider(ServiceProvider96.class); + binder.bind(Service97.class).toProvider(ServiceProvider97.class); + binder.bind(Service98.class).toProvider(ServiceProvider98.class); + binder.bind(Service99.class).toProvider(ServiceProvider99.class); + binder.bind(Service100.class).toProvider(ServiceProvider100.class); + binder.bind(Service101.class).toProvider(ServiceProvider101.class); + } +} diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider.java new file mode 100644 index 0000000..107b9fb --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider implements Provider { + + @Inject + private Service1 service; + + @Override + public Service get() throws DIRuntimeException { + return new DefaultService(service); + } +} diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider1.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider1.java new file mode 100644 index 0000000..85e258d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider1.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider1 implements Provider { + + @Inject + private Service2 service; + + @Override + public Service1 get() throws DIRuntimeException { + return new DefaultService1(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider10.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider10.java new file mode 100644 index 0000000..18da1e1 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider10.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider10 implements Provider { + + @Inject + private Service11 service; + + @Override + public Service10 get() throws DIRuntimeException { + return new DefaultService10(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider100.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider100.java new file mode 100644 index 0000000..252c304 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider100.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider100 implements Provider { + + @Inject + private Service101 service; + + @Override + public Service100 get() throws DIRuntimeException { + return new DefaultService100(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider101.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider101.java new file mode 100644 index 0000000..2faa00a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider101.java @@ -0,0 +1,14 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider101 implements Provider { + + @Override + public Service101 get() throws DIRuntimeException { + return new DefaultService101(); + } +} diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider11.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider11.java new file mode 100644 index 0000000..bd3831f --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider11.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider11 implements Provider { + + @Inject + private Service12 service; + + @Override + public Service11 get() throws DIRuntimeException { + return new DefaultService11(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider12.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider12.java new file mode 100644 index 0000000..89517d7 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider12.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider12 implements Provider { + + @Inject + private Service13 service; + + @Override + public Service12 get() throws DIRuntimeException { + return new DefaultService12(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider13.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider13.java new file mode 100644 index 0000000..4102da1 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider13.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider13 implements Provider { + + @Inject + private Service14 service; + + @Override + public Service13 get() throws DIRuntimeException { + return new DefaultService13(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider14.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider14.java new file mode 100644 index 0000000..ba6047c --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider14.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider14 implements Provider { + + @Inject + private Service15 service; + + @Override + public Service14 get() throws DIRuntimeException { + return new DefaultService14(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider15.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider15.java new file mode 100644 index 0000000..959e0b2 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider15.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider15 implements Provider { + + @Inject + private Service16 service; + + @Override + public Service15 get() throws DIRuntimeException { + return new DefaultService15(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider16.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider16.java new file mode 100644 index 0000000..16114ad --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider16.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider16 implements Provider { + + @Inject + private Service17 service; + + @Override + public Service16 get() throws DIRuntimeException { + return new DefaultService16(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider17.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider17.java new file mode 100644 index 0000000..5d69b0c --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider17.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider17 implements Provider { + + @Inject + private Service18 service; + + @Override + public Service17 get() throws DIRuntimeException { + return new DefaultService17(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider18.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider18.java new file mode 100644 index 0000000..e2c5c34 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider18.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider18 implements Provider { + + @Inject + private Service19 service; + + @Override + public Service18 get() throws DIRuntimeException { + return new DefaultService18(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider19.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider19.java new file mode 100644 index 0000000..83ee30a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider19.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider19 implements Provider { + + @Inject + private Service20 service; + + @Override + public Service19 get() throws DIRuntimeException { + return new DefaultService19(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider2.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider2.java new file mode 100644 index 0000000..e0fa595 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider2.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider2 implements Provider { + + @Inject + private Service3 service; + + @Override + public Service2 get() throws DIRuntimeException { + return new DefaultService2(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider20.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider20.java new file mode 100644 index 0000000..fb5fd55 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider20.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider20 implements Provider { + + @Inject + private Service21 service; + + @Override + public Service20 get() throws DIRuntimeException { + return new DefaultService20(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider21.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider21.java new file mode 100644 index 0000000..e376042 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider21.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider21 implements Provider { + + @Inject + private Service22 service; + + @Override + public Service21 get() throws DIRuntimeException { + return new DefaultService21(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider22.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider22.java new file mode 100644 index 0000000..9a1c120 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider22.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider22 implements Provider { + + @Inject + private Service23 service; + + @Override + public Service22 get() throws DIRuntimeException { + return new DefaultService22(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider23.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider23.java new file mode 100644 index 0000000..7949720 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider23.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider23 implements Provider { + + @Inject + private Service24 service; + + @Override + public Service23 get() throws DIRuntimeException { + return new DefaultService23(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider24.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider24.java new file mode 100644 index 0000000..8ef641b --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider24.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider24 implements Provider { + + @Inject + private Service25 service; + + @Override + public Service24 get() throws DIRuntimeException { + return new DefaultService24(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider25.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider25.java new file mode 100644 index 0000000..9a10b0f --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider25.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider25 implements Provider { + + @Inject + private Service26 service; + + @Override + public Service25 get() throws DIRuntimeException { + return new DefaultService25(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider26.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider26.java new file mode 100644 index 0000000..f44f954 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider26.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider26 implements Provider { + + @Inject + private Service27 service; + + @Override + public Service26 get() throws DIRuntimeException { + return new DefaultService26(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider27.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider27.java new file mode 100644 index 0000000..407e4e4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider27.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider27 implements Provider { + + @Inject + private Service28 service; + + @Override + public Service27 get() throws DIRuntimeException { + return new DefaultService27(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider28.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider28.java new file mode 100644 index 0000000..2efbaed --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider28.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider28 implements Provider { + + @Inject + private Service29 service; + + @Override + public Service28 get() throws DIRuntimeException { + return new DefaultService28(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider29.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider29.java new file mode 100644 index 0000000..f7010ac --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider29.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider29 implements Provider { + + @Inject + private Service30 service; + + @Override + public Service29 get() throws DIRuntimeException { + return new DefaultService29(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider3.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider3.java new file mode 100644 index 0000000..27d52fc --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider3.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider3 implements Provider { + + @Inject + private Service4 service; + + @Override + public Service3 get() throws DIRuntimeException { + return new DefaultService3(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider30.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider30.java new file mode 100644 index 0000000..d30353a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider30.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider30 implements Provider { + + @Inject + private Service31 service; + + @Override + public Service30 get() throws DIRuntimeException { + return new DefaultService30(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider31.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider31.java new file mode 100644 index 0000000..5c0aa5d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider31.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider31 implements Provider { + + @Inject + private Service32 service; + + @Override + public Service31 get() throws DIRuntimeException { + return new DefaultService31(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider32.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider32.java new file mode 100644 index 0000000..2096151 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider32.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider32 implements Provider { + + @Inject + private Service33 service; + + @Override + public Service32 get() throws DIRuntimeException { + return new DefaultService32(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider33.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider33.java new file mode 100644 index 0000000..c61baf4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider33.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider33 implements Provider { + + @Inject + private Service34 service; + + @Override + public Service33 get() throws DIRuntimeException { + return new DefaultService33(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider34.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider34.java new file mode 100644 index 0000000..eac4006 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider34.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider34 implements Provider { + + @Inject + private Service35 service; + + @Override + public Service34 get() throws DIRuntimeException { + return new DefaultService34(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider35.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider35.java new file mode 100644 index 0000000..6f28f3e --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider35.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider35 implements Provider { + + @Inject + private Service36 service; + + @Override + public Service35 get() throws DIRuntimeException { + return new DefaultService35(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider36.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider36.java new file mode 100644 index 0000000..7fdd8cf --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider36.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider36 implements Provider { + + @Inject + private Service37 service; + + @Override + public Service36 get() throws DIRuntimeException { + return new DefaultService36(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider37.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider37.java new file mode 100644 index 0000000..6db7337 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider37.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider37 implements Provider { + + @Inject + private Service38 service; + + @Override + public Service37 get() throws DIRuntimeException { + return new DefaultService37(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider38.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider38.java new file mode 100644 index 0000000..8df6823 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider38.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider38 implements Provider { + + @Inject + private Service39 service; + + @Override + public Service38 get() throws DIRuntimeException { + return new DefaultService38(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider39.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider39.java new file mode 100644 index 0000000..a20acdc --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider39.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider39 implements Provider { + + @Inject + private Service40 service; + + @Override + public Service39 get() throws DIRuntimeException { + return new DefaultService39(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider4.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider4.java new file mode 100644 index 0000000..7eb0e7a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider4.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider4 implements Provider { + + @Inject + private Service5 service; + + @Override + public Service4 get() throws DIRuntimeException { + return new DefaultService4(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider40.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider40.java new file mode 100644 index 0000000..88d1b5e --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider40.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider40 implements Provider { + + @Inject + private Service41 service; + + @Override + public Service40 get() throws DIRuntimeException { + return new DefaultService40(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider41.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider41.java new file mode 100644 index 0000000..92d2443 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider41.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider41 implements Provider { + + @Inject + private Service42 service; + + @Override + public Service41 get() throws DIRuntimeException { + return new DefaultService41(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider42.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider42.java new file mode 100644 index 0000000..a493eb2 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider42.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider42 implements Provider { + + @Inject + private Service43 service; + + @Override + public Service42 get() throws DIRuntimeException { + return new DefaultService42(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider43.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider43.java new file mode 100644 index 0000000..8893de3 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider43.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider43 implements Provider { + + @Inject + private Service44 service; + + @Override + public Service43 get() throws DIRuntimeException { + return new DefaultService43(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider44.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider44.java new file mode 100644 index 0000000..591ba15 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider44.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider44 implements Provider { + + @Inject + private Service45 service; + + @Override + public Service44 get() throws DIRuntimeException { + return new DefaultService44(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider45.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider45.java new file mode 100644 index 0000000..bd604c9 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider45.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider45 implements Provider { + + @Inject + private Service46 service; + + @Override + public Service45 get() throws DIRuntimeException { + return new DefaultService45(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider46.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider46.java new file mode 100644 index 0000000..81233c1 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider46.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider46 implements Provider { + + @Inject + private Service47 service; + + @Override + public Service46 get() throws DIRuntimeException { + return new DefaultService46(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider47.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider47.java new file mode 100644 index 0000000..7f5e088 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider47.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider47 implements Provider { + + @Inject + private Service48 service; + + @Override + public Service47 get() throws DIRuntimeException { + return new DefaultService47(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider48.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider48.java new file mode 100644 index 0000000..6b418c3 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider48.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider48 implements Provider { + + @Inject + private Service49 service; + + @Override + public Service48 get() throws DIRuntimeException { + return new DefaultService48(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider49.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider49.java new file mode 100644 index 0000000..2d9a2d5 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider49.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider49 implements Provider { + + @Inject + private Service50 service; + + @Override + public Service49 get() throws DIRuntimeException { + return new DefaultService49(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider5.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider5.java new file mode 100644 index 0000000..1239800 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider5.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider5 implements Provider { + + @Inject + private Service6 service; + + @Override + public Service5 get() throws DIRuntimeException { + return new DefaultService5(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider50.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider50.java new file mode 100644 index 0000000..f6f3bef --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider50.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider50 implements Provider { + + @Inject + private Service51 service; + + @Override + public Service50 get() throws DIRuntimeException { + return new DefaultService50(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider51.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider51.java new file mode 100644 index 0000000..b517fae --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider51.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider51 implements Provider { + + @Inject + private Service52 service; + + @Override + public Service51 get() throws DIRuntimeException { + return new DefaultService51(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider52.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider52.java new file mode 100644 index 0000000..cd4bb4c --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider52.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider52 implements Provider { + + @Inject + private Service53 service; + + @Override + public Service52 get() throws DIRuntimeException { + return new DefaultService52(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider53.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider53.java new file mode 100644 index 0000000..d7949dd --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider53.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider53 implements Provider { + + @Inject + private Service54 service; + + @Override + public Service53 get() throws DIRuntimeException { + return new DefaultService53(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider54.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider54.java new file mode 100644 index 0000000..b4deefb --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider54.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider54 implements Provider { + + @Inject + private Service55 service; + + @Override + public Service54 get() throws DIRuntimeException { + return new DefaultService54(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider55.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider55.java new file mode 100644 index 0000000..0eedeff --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider55.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider55 implements Provider { + + @Inject + private Service56 service; + + @Override + public Service55 get() throws DIRuntimeException { + return new DefaultService55(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider56.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider56.java new file mode 100644 index 0000000..2184f79 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider56.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider56 implements Provider { + + @Inject + private Service57 service; + + @Override + public Service56 get() throws DIRuntimeException { + return new DefaultService56(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider57.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider57.java new file mode 100644 index 0000000..a2ed4a3 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider57.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider57 implements Provider { + + @Inject + private Service58 service; + + @Override + public Service57 get() throws DIRuntimeException { + return new DefaultService57(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider58.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider58.java new file mode 100644 index 0000000..91f6cd3 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider58.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider58 implements Provider { + + @Inject + private Service59 service; + + @Override + public Service58 get() throws DIRuntimeException { + return new DefaultService58(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider59.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider59.java new file mode 100644 index 0000000..6f4ce4d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider59.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider59 implements Provider { + + @Inject + private Service60 service; + + @Override + public Service59 get() throws DIRuntimeException { + return new DefaultService59(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider6.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider6.java new file mode 100644 index 0000000..60325b0 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider6.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider6 implements Provider { + + @Inject + private Service7 service; + + @Override + public Service6 get() throws DIRuntimeException { + return new DefaultService6(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider60.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider60.java new file mode 100644 index 0000000..515810e --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider60.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider60 implements Provider { + + @Inject + private Service61 service; + + @Override + public Service60 get() throws DIRuntimeException { + return new DefaultService60(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider61.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider61.java new file mode 100644 index 0000000..ff72176 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider61.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider61 implements Provider { + + @Inject + private Service62 service; + + @Override + public Service61 get() throws DIRuntimeException { + return new DefaultService61(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider62.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider62.java new file mode 100644 index 0000000..b72ee4b --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider62.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider62 implements Provider { + + @Inject + private Service63 service; + + @Override + public Service62 get() throws DIRuntimeException { + return new DefaultService62(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider63.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider63.java new file mode 100644 index 0000000..0e6bf4c --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider63.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider63 implements Provider { + + @Inject + private Service64 service; + + @Override + public Service63 get() throws DIRuntimeException { + return new DefaultService63(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider64.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider64.java new file mode 100644 index 0000000..599e6c4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider64.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider64 implements Provider { + + @Inject + private Service65 service; + + @Override + public Service64 get() throws DIRuntimeException { + return new DefaultService64(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider65.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider65.java new file mode 100644 index 0000000..4c44e97 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider65.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider65 implements Provider { + + @Inject + private Service66 service; + + @Override + public Service65 get() throws DIRuntimeException { + return new DefaultService65(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider66.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider66.java new file mode 100644 index 0000000..22c221a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider66.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider66 implements Provider { + + @Inject + private Service67 service; + + @Override + public Service66 get() throws DIRuntimeException { + return new DefaultService66(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider67.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider67.java new file mode 100644 index 0000000..5f07805 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider67.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider67 implements Provider { + + @Inject + private Service68 service; + + @Override + public Service67 get() throws DIRuntimeException { + return new DefaultService67(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider68.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider68.java new file mode 100644 index 0000000..d5ebfa9 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider68.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider68 implements Provider { + + @Inject + private Service69 service; + + @Override + public Service68 get() throws DIRuntimeException { + return new DefaultService68(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider69.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider69.java new file mode 100644 index 0000000..152b21d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider69.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider69 implements Provider { + + @Inject + private Service70 service; + + @Override + public Service69 get() throws DIRuntimeException { + return new DefaultService69(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider7.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider7.java new file mode 100644 index 0000000..977a101 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider7.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider7 implements Provider { + + @Inject + private Service8 service; + + @Override + public Service7 get() throws DIRuntimeException { + return new DefaultService7(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider70.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider70.java new file mode 100644 index 0000000..7c0c46d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider70.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider70 implements Provider { + + @Inject + private Service71 service; + + @Override + public Service70 get() throws DIRuntimeException { + return new DefaultService70(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider71.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider71.java new file mode 100644 index 0000000..6be42d4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider71.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider71 implements Provider { + + @Inject + private Service72 service; + + @Override + public Service71 get() throws DIRuntimeException { + return new DefaultService71(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider72.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider72.java new file mode 100644 index 0000000..c62c07a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider72.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider72 implements Provider { + + @Inject + private Service73 service; + + @Override + public Service72 get() throws DIRuntimeException { + return new DefaultService72(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider73.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider73.java new file mode 100644 index 0000000..d48bda8 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider73.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider73 implements Provider { + + @Inject + private Service74 service; + + @Override + public Service73 get() throws DIRuntimeException { + return new DefaultService73(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider74.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider74.java new file mode 100644 index 0000000..5d35c00 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider74.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider74 implements Provider { + + @Inject + private Service75 service; + + @Override + public Service74 get() throws DIRuntimeException { + return new DefaultService74(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider75.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider75.java new file mode 100644 index 0000000..b3e99c9 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider75.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider75 implements Provider { + + @Inject + private Service76 service; + + @Override + public Service75 get() throws DIRuntimeException { + return new DefaultService75(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider76.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider76.java new file mode 100644 index 0000000..9ad11dc --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider76.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider76 implements Provider { + + @Inject + private Service77 service; + + @Override + public Service76 get() throws DIRuntimeException { + return new DefaultService76(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider77.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider77.java new file mode 100644 index 0000000..6fa786a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider77.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider77 implements Provider { + + @Inject + private Service78 service; + + @Override + public Service77 get() throws DIRuntimeException { + return new DefaultService77(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider78.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider78.java new file mode 100644 index 0000000..8cb166a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider78.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider78 implements Provider { + + @Inject + private Service79 service; + + @Override + public Service78 get() throws DIRuntimeException { + return new DefaultService78(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider79.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider79.java new file mode 100644 index 0000000..56e545d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider79.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider79 implements Provider { + + @Inject + private Service80 service; + + @Override + public Service79 get() throws DIRuntimeException { + return new DefaultService79(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider8.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider8.java new file mode 100644 index 0000000..8534966 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider8.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider8 implements Provider { + + @Inject + private Service9 service; + + @Override + public Service8 get() throws DIRuntimeException { + return new DefaultService8(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider80.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider80.java new file mode 100644 index 0000000..57c87f1 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider80.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider80 implements Provider { + + @Inject + private Service81 service; + + @Override + public Service80 get() throws DIRuntimeException { + return new DefaultService80(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider81.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider81.java new file mode 100644 index 0000000..802c12d --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider81.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider81 implements Provider { + + @Inject + private Service82 service; + + @Override + public Service81 get() throws DIRuntimeException { + return new DefaultService81(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider82.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider82.java new file mode 100644 index 0000000..a72da5c --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider82.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider82 implements Provider { + + @Inject + private Service83 service; + + @Override + public Service82 get() throws DIRuntimeException { + return new DefaultService82(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider83.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider83.java new file mode 100644 index 0000000..a0dc3ce --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider83.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider83 implements Provider { + + @Inject + private Service84 service; + + @Override + public Service83 get() throws DIRuntimeException { + return new DefaultService83(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider84.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider84.java new file mode 100644 index 0000000..57038b4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider84.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider84 implements Provider { + + @Inject + private Service85 service; + + @Override + public Service84 get() throws DIRuntimeException { + return new DefaultService84(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider85.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider85.java new file mode 100644 index 0000000..0be5f90 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider85.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider85 implements Provider { + + @Inject + private Service86 service; + + @Override + public Service85 get() throws DIRuntimeException { + return new DefaultService85(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider86.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider86.java new file mode 100644 index 0000000..f17096b --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider86.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider86 implements Provider { + + @Inject + private Service87 service; + + @Override + public Service86 get() throws DIRuntimeException { + return new DefaultService86(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider87.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider87.java new file mode 100644 index 0000000..7114d2a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider87.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider87 implements Provider { + + @Inject + private Service88 service; + + @Override + public Service87 get() throws DIRuntimeException { + return new DefaultService87(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider88.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider88.java new file mode 100644 index 0000000..6ac9532 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider88.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider88 implements Provider { + + @Inject + private Service89 service; + + @Override + public Service88 get() throws DIRuntimeException { + return new DefaultService88(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider89.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider89.java new file mode 100644 index 0000000..0bf14b4 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider89.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider89 implements Provider { + + @Inject + private Service90 service; + + @Override + public Service89 get() throws DIRuntimeException { + return new DefaultService89(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider9.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider9.java new file mode 100644 index 0000000..baf2072 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider9.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider9 implements Provider { + + @Inject + private Service10 service; + + @Override + public Service9 get() throws DIRuntimeException { + return new DefaultService9(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider90.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider90.java new file mode 100644 index 0000000..468c8e3 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider90.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider90 implements Provider { + + @Inject + private Service91 service; + + @Override + public Service90 get() throws DIRuntimeException { + return new DefaultService90(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider91.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider91.java new file mode 100644 index 0000000..d13b83a --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider91.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider91 implements Provider { + + @Inject + private Service92 service; + + @Override + public Service91 get() throws DIRuntimeException { + return new DefaultService91(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider92.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider92.java new file mode 100644 index 0000000..da13dbe --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider92.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider92 implements Provider { + + @Inject + private Service93 service; + + @Override + public Service92 get() throws DIRuntimeException { + return new DefaultService92(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider93.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider93.java new file mode 100644 index 0000000..b56c188 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider93.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider93 implements Provider { + + @Inject + private Service94 service; + + @Override + public Service93 get() throws DIRuntimeException { + return new DefaultService93(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider94.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider94.java new file mode 100644 index 0000000..61c4462 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider94.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider94 implements Provider { + + @Inject + private Service95 service; + + @Override + public Service94 get() throws DIRuntimeException { + return new DefaultService94(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider95.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider95.java new file mode 100644 index 0000000..f3e66ba --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider95.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider95 implements Provider { + + @Inject + private Service96 service; + + @Override + public Service95 get() throws DIRuntimeException { + return new DefaultService95(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider96.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider96.java new file mode 100644 index 0000000..446b345 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider96.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider96 implements Provider { + + @Inject + private Service97 service; + + @Override + public Service96 get() throws DIRuntimeException { + return new DefaultService96(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider97.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider97.java new file mode 100644 index 0000000..f14ebe8 --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider97.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider97 implements Provider { + + @Inject + private Service98 service; + + @Override + public Service97 get() throws DIRuntimeException { + return new DefaultService97(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider98.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider98.java new file mode 100644 index 0000000..8928d2e --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider98.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider98 implements Provider { + + @Inject + private Service99 service; + + @Override + public Service98 get() throws DIRuntimeException { + return new DefaultService98(service); + } +} \ No newline at end of file diff --git a/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider99.java b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider99.java new file mode 100644 index 0000000..fadd15f --- /dev/null +++ b/cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider99.java @@ -0,0 +1,17 @@ +package org.objectstyle.cayenne; + +import io.heapy.sample.common2.*; +import org.apache.cayenne.di.DIRuntimeException; +import org.apache.cayenne.di.Inject; +import org.apache.cayenne.di.Provider; + +public class ServiceProvider99 implements Provider { + + @Inject + private Service100 service; + + @Override + public Service99 get() throws DIRuntimeException { + return new DefaultService99(service); + } +} \ No newline at end of file diff --git a/common-deep/src/test/kotlin/GenerateBootique.kt b/common-deep/src/test/kotlin/GenerateBootique.kt new file mode 100644 index 0000000..32be443 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateBootique.kt @@ -0,0 +1,12 @@ +fun main() { + (1..101).forEach { + println(""" + @Provides + @Singleton + Service$it provideService$it(Service${it + 1} service) { + return new DefaultService$it(service); + } + + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateCayenne.kt b/common-deep/src/test/kotlin/GenerateCayenne.kt new file mode 100644 index 0000000..bedda11 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateCayenne.kt @@ -0,0 +1,40 @@ +import java.nio.file.Files +import java.nio.file.Paths +import java.nio.file.StandardOpenOption + +fun main() { + (1..101).forEach { + println(""" + binder.bind(Service$it.class).toProvider(ServiceProvider$it.class); + """.trimIndent()) + + generateProvider(it) + } +} + +fun generateProvider(it: Int) { + Files.write( + Paths.get("./cayennedi-deep/src/main/java/org/objectstyle/cayenne/ServiceProvider$it.java"), + """ + package org.objectstyle.cayenne; + + import io.heapy.sample.common2.*; + import org.apache.cayenne.di.DIRuntimeException; + import org.apache.cayenne.di.Inject; + import org.apache.cayenne.di.Provider; + + public class ServiceProvider$it implements Provider { + + @Inject + private Service${it + 1} service; + + @Override + public Service${it} get() throws DIRuntimeException { + return new DefaultService${it}(service); + } + } + """.trimIndent().toByteArray(), + StandardOpenOption.CREATE, + StandardOpenOption.TRUNCATE_EXISTING + ) +} diff --git a/common-deep/src/test/kotlin/GenerateGuice.kt b/common-deep/src/test/kotlin/GenerateGuice.kt new file mode 100644 index 0000000..32be443 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateGuice.kt @@ -0,0 +1,12 @@ +fun main() { + (1..101).forEach { + println(""" + @Provides + @Singleton + Service$it provideService$it(Service${it + 1} service) { + return new DefaultService$it(service); + } + + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateKodein.kt b/common-deep/src/test/kotlin/GenerateKodein.kt new file mode 100644 index 0000000..7e0fe70 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateKodein.kt @@ -0,0 +1,7 @@ +fun main() { + (1..101).forEach { + println(""" + bind() with singleton { DefaultService$it(instance()) } + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateKoin.kt b/common-deep/src/test/kotlin/GenerateKoin.kt new file mode 100644 index 0000000..c713294 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateKoin.kt @@ -0,0 +1,7 @@ +fun main() { + (1..101).forEach { + println(""" + single { DefaultService$it(get()) } + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateKomodo.kt b/common-deep/src/test/kotlin/GenerateKomodo.kt new file mode 100644 index 0000000..dba23fc --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateKomodo.kt @@ -0,0 +1,7 @@ +fun main() { + (1..101).forEach { + println(""" + provide(::DefaultService$it) + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateOwb.kt b/common-deep/src/test/kotlin/GenerateOwb.kt new file mode 100644 index 0000000..bbafa92 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateOwb.kt @@ -0,0 +1,12 @@ +fun main() { + (1..101).forEach { + println(""" + @Produces + @ApplicationScoped + Service$it provideService$it(Service${it + 1} service) { + return new DefaultService$it(service); + } + + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateSpring.kt b/common-deep/src/test/kotlin/GenerateSpring.kt new file mode 100644 index 0000000..dc904e1 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateSpring.kt @@ -0,0 +1,11 @@ +fun main() { + (1..101).forEach { + println(""" + @Bean + public Service$it service$it(Service${it + 1} service) { + return new DefaultService$it(service); + } + + """.trimIndent()) + } +} diff --git a/common-deep/src/test/kotlin/GenerateSpringboot.kt b/common-deep/src/test/kotlin/GenerateSpringboot.kt new file mode 100644 index 0000000..dc904e1 --- /dev/null +++ b/common-deep/src/test/kotlin/GenerateSpringboot.kt @@ -0,0 +1,11 @@ +fun main() { + (1..101).forEach { + println(""" + @Bean + public Service$it service$it(Service${it + 1} service) { + return new DefaultService$it(service); + } + + """.trimIndent()) + } +} diff --git a/guice-deep/build.gradle.kts b/guice-deep/build.gradle.kts new file mode 100644 index 0000000..4f2e470 --- /dev/null +++ b/guice-deep/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + java + application +} + +application { + mainClass.set("org.objectstyle.guice.Main") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation("com.google.inject:guice:5.0.0-BETA-1") +} diff --git a/guice-deep/src/main/java/org/objectstyle/guice/Main.java b/guice-deep/src/main/java/org/objectstyle/guice/Main.java new file mode 100644 index 0000000..2e64e56 --- /dev/null +++ b/guice-deep/src/main/java/org/objectstyle/guice/Main.java @@ -0,0 +1,12 @@ +package org.objectstyle.guice; + +import com.google.inject.Guice; +import io.heapy.sample.common2.Service; + +public class Main { + + public static void main(String[] args) { + Service s = Guice.createInjector(new MainModule()).getInstance(Service.class); + System.out.println(s.name()); + } +} diff --git a/guice-deep/src/main/java/org/objectstyle/guice/MainModule.java b/guice-deep/src/main/java/org/objectstyle/guice/MainModule.java new file mode 100644 index 0000000..4776b43 --- /dev/null +++ b/guice-deep/src/main/java/org/objectstyle/guice/MainModule.java @@ -0,0 +1,627 @@ +package org.objectstyle.guice; + +import com.google.inject.Binder; +import com.google.inject.Module; +import com.google.inject.Provides; +import io.heapy.sample.common2.*; + +import javax.inject.Singleton; + +public class MainModule implements Module { + + @Override + public void configure(Binder binder) { + } + + @Provides + @Singleton + Service provideService(Service1 service) { + return new DefaultService(service); + } + + @Provides + @Singleton + Service1 provideService1(Service2 service) { + return new DefaultService1(service); + } + + @Provides + @Singleton + Service2 provideService2(Service3 service) { + return new DefaultService2(service); + } + + @Provides + @Singleton + Service3 provideService3(Service4 service) { + return new DefaultService3(service); + } + + @Provides + @Singleton + Service4 provideService4(Service5 service) { + return new DefaultService4(service); + } + + @Provides + @Singleton + Service5 provideService5(Service6 service) { + return new DefaultService5(service); + } + + @Provides + @Singleton + Service6 provideService6(Service7 service) { + return new DefaultService6(service); + } + + @Provides + @Singleton + Service7 provideService7(Service8 service) { + return new DefaultService7(service); + } + + @Provides + @Singleton + Service8 provideService8(Service9 service) { + return new DefaultService8(service); + } + + @Provides + @Singleton + Service9 provideService9(Service10 service) { + return new DefaultService9(service); + } + + @Provides + @Singleton + Service10 provideService10(Service11 service) { + return new DefaultService10(service); + } + + @Provides + @Singleton + Service11 provideService11(Service12 service) { + return new DefaultService11(service); + } + + @Provides + @Singleton + Service12 provideService12(Service13 service) { + return new DefaultService12(service); + } + + @Provides + @Singleton + Service13 provideService13(Service14 service) { + return new DefaultService13(service); + } + + @Provides + @Singleton + Service14 provideService14(Service15 service) { + return new DefaultService14(service); + } + + @Provides + @Singleton + Service15 provideService15(Service16 service) { + return new DefaultService15(service); + } + + @Provides + @Singleton + Service16 provideService16(Service17 service) { + return new DefaultService16(service); + } + + @Provides + @Singleton + Service17 provideService17(Service18 service) { + return new DefaultService17(service); + } + + @Provides + @Singleton + Service18 provideService18(Service19 service) { + return new DefaultService18(service); + } + + @Provides + @Singleton + Service19 provideService19(Service20 service) { + return new DefaultService19(service); + } + + @Provides + @Singleton + Service20 provideService20(Service21 service) { + return new DefaultService20(service); + } + + @Provides + @Singleton + Service21 provideService21(Service22 service) { + return new DefaultService21(service); + } + + @Provides + @Singleton + Service22 provideService22(Service23 service) { + return new DefaultService22(service); + } + + @Provides + @Singleton + Service23 provideService23(Service24 service) { + return new DefaultService23(service); + } + + @Provides + @Singleton + Service24 provideService24(Service25 service) { + return new DefaultService24(service); + } + + @Provides + @Singleton + Service25 provideService25(Service26 service) { + return new DefaultService25(service); + } + + @Provides + @Singleton + Service26 provideService26(Service27 service) { + return new DefaultService26(service); + } + + @Provides + @Singleton + Service27 provideService27(Service28 service) { + return new DefaultService27(service); + } + + @Provides + @Singleton + Service28 provideService28(Service29 service) { + return new DefaultService28(service); + } + + @Provides + @Singleton + Service29 provideService29(Service30 service) { + return new DefaultService29(service); + } + + @Provides + @Singleton + Service30 provideService30(Service31 service) { + return new DefaultService30(service); + } + + @Provides + @Singleton + Service31 provideService31(Service32 service) { + return new DefaultService31(service); + } + + @Provides + @Singleton + Service32 provideService32(Service33 service) { + return new DefaultService32(service); + } + + @Provides + @Singleton + Service33 provideService33(Service34 service) { + return new DefaultService33(service); + } + + @Provides + @Singleton + Service34 provideService34(Service35 service) { + return new DefaultService34(service); + } + + @Provides + @Singleton + Service35 provideService35(Service36 service) { + return new DefaultService35(service); + } + + @Provides + @Singleton + Service36 provideService36(Service37 service) { + return new DefaultService36(service); + } + + @Provides + @Singleton + Service37 provideService37(Service38 service) { + return new DefaultService37(service); + } + + @Provides + @Singleton + Service38 provideService38(Service39 service) { + return new DefaultService38(service); + } + + @Provides + @Singleton + Service39 provideService39(Service40 service) { + return new DefaultService39(service); + } + + @Provides + @Singleton + Service40 provideService40(Service41 service) { + return new DefaultService40(service); + } + + @Provides + @Singleton + Service41 provideService41(Service42 service) { + return new DefaultService41(service); + } + + @Provides + @Singleton + Service42 provideService42(Service43 service) { + return new DefaultService42(service); + } + + @Provides + @Singleton + Service43 provideService43(Service44 service) { + return new DefaultService43(service); + } + + @Provides + @Singleton + Service44 provideService44(Service45 service) { + return new DefaultService44(service); + } + + @Provides + @Singleton + Service45 provideService45(Service46 service) { + return new DefaultService45(service); + } + + @Provides + @Singleton + Service46 provideService46(Service47 service) { + return new DefaultService46(service); + } + + @Provides + @Singleton + Service47 provideService47(Service48 service) { + return new DefaultService47(service); + } + + @Provides + @Singleton + Service48 provideService48(Service49 service) { + return new DefaultService48(service); + } + + @Provides + @Singleton + Service49 provideService49(Service50 service) { + return new DefaultService49(service); + } + + @Provides + @Singleton + Service50 provideService50(Service51 service) { + return new DefaultService50(service); + } + + @Provides + @Singleton + Service51 provideService51(Service52 service) { + return new DefaultService51(service); + } + + @Provides + @Singleton + Service52 provideService52(Service53 service) { + return new DefaultService52(service); + } + + @Provides + @Singleton + Service53 provideService53(Service54 service) { + return new DefaultService53(service); + } + + @Provides + @Singleton + Service54 provideService54(Service55 service) { + return new DefaultService54(service); + } + + @Provides + @Singleton + Service55 provideService55(Service56 service) { + return new DefaultService55(service); + } + + @Provides + @Singleton + Service56 provideService56(Service57 service) { + return new DefaultService56(service); + } + + @Provides + @Singleton + Service57 provideService57(Service58 service) { + return new DefaultService57(service); + } + + @Provides + @Singleton + Service58 provideService58(Service59 service) { + return new DefaultService58(service); + } + + @Provides + @Singleton + Service59 provideService59(Service60 service) { + return new DefaultService59(service); + } + + @Provides + @Singleton + Service60 provideService60(Service61 service) { + return new DefaultService60(service); + } + + @Provides + @Singleton + Service61 provideService61(Service62 service) { + return new DefaultService61(service); + } + + @Provides + @Singleton + Service62 provideService62(Service63 service) { + return new DefaultService62(service); + } + + @Provides + @Singleton + Service63 provideService63(Service64 service) { + return new DefaultService63(service); + } + + @Provides + @Singleton + Service64 provideService64(Service65 service) { + return new DefaultService64(service); + } + + @Provides + @Singleton + Service65 provideService65(Service66 service) { + return new DefaultService65(service); + } + + @Provides + @Singleton + Service66 provideService66(Service67 service) { + return new DefaultService66(service); + } + + @Provides + @Singleton + Service67 provideService67(Service68 service) { + return new DefaultService67(service); + } + + @Provides + @Singleton + Service68 provideService68(Service69 service) { + return new DefaultService68(service); + } + + @Provides + @Singleton + Service69 provideService69(Service70 service) { + return new DefaultService69(service); + } + + @Provides + @Singleton + Service70 provideService70(Service71 service) { + return new DefaultService70(service); + } + + @Provides + @Singleton + Service71 provideService71(Service72 service) { + return new DefaultService71(service); + } + + @Provides + @Singleton + Service72 provideService72(Service73 service) { + return new DefaultService72(service); + } + + @Provides + @Singleton + Service73 provideService73(Service74 service) { + return new DefaultService73(service); + } + + @Provides + @Singleton + Service74 provideService74(Service75 service) { + return new DefaultService74(service); + } + + @Provides + @Singleton + Service75 provideService75(Service76 service) { + return new DefaultService75(service); + } + + @Provides + @Singleton + Service76 provideService76(Service77 service) { + return new DefaultService76(service); + } + + @Provides + @Singleton + Service77 provideService77(Service78 service) { + return new DefaultService77(service); + } + + @Provides + @Singleton + Service78 provideService78(Service79 service) { + return new DefaultService78(service); + } + + @Provides + @Singleton + Service79 provideService79(Service80 service) { + return new DefaultService79(service); + } + + @Provides + @Singleton + Service80 provideService80(Service81 service) { + return new DefaultService80(service); + } + + @Provides + @Singleton + Service81 provideService81(Service82 service) { + return new DefaultService81(service); + } + + @Provides + @Singleton + Service82 provideService82(Service83 service) { + return new DefaultService82(service); + } + + @Provides + @Singleton + Service83 provideService83(Service84 service) { + return new DefaultService83(service); + } + + @Provides + @Singleton + Service84 provideService84(Service85 service) { + return new DefaultService84(service); + } + + @Provides + @Singleton + Service85 provideService85(Service86 service) { + return new DefaultService85(service); + } + + @Provides + @Singleton + Service86 provideService86(Service87 service) { + return new DefaultService86(service); + } + + @Provides + @Singleton + Service87 provideService87(Service88 service) { + return new DefaultService87(service); + } + + @Provides + @Singleton + Service88 provideService88(Service89 service) { + return new DefaultService88(service); + } + + @Provides + @Singleton + Service89 provideService89(Service90 service) { + return new DefaultService89(service); + } + + @Provides + @Singleton + Service90 provideService90(Service91 service) { + return new DefaultService90(service); + } + + @Provides + @Singleton + Service91 provideService91(Service92 service) { + return new DefaultService91(service); + } + + @Provides + @Singleton + Service92 provideService92(Service93 service) { + return new DefaultService92(service); + } + + @Provides + @Singleton + Service93 provideService93(Service94 service) { + return new DefaultService93(service); + } + + @Provides + @Singleton + Service94 provideService94(Service95 service) { + return new DefaultService94(service); + } + + @Provides + @Singleton + Service95 provideService95(Service96 service) { + return new DefaultService95(service); + } + + @Provides + @Singleton + Service96 provideService96(Service97 service) { + return new DefaultService96(service); + } + + @Provides + @Singleton + Service97 provideService97(Service98 service) { + return new DefaultService97(service); + } + + @Provides + @Singleton + Service98 provideService98(Service99 service) { + return new DefaultService98(service); + } + + @Provides + @Singleton + Service99 provideService99(Service100 service) { + return new DefaultService99(service); + } + + @Provides + @Singleton + Service100 provideService100(Service101 service) { + return new DefaultService100(service); + } + + @Provides + @Singleton + Service101 provideService101() { + return new DefaultService101(); + } +} diff --git a/guice/build.gradle.kts b/guice/build.gradle.kts index bbded40..91988d0 100644 --- a/guice/build.gradle.kts +++ b/guice/build.gradle.kts @@ -14,5 +14,5 @@ repositories { dependencies { implementation(project(":common")) - implementation("com.google.inject:guice:4.2.3") + implementation("com.google.inject:guice:5.0.0-BETA-1") } diff --git a/kodein-deep/build.gradle.kts b/kodein-deep/build.gradle.kts new file mode 100644 index 0000000..45e05c9 --- /dev/null +++ b/kodein-deep/build.gradle.kts @@ -0,0 +1,23 @@ +plugins { + kotlin("jvm").version("1.4.30-M1") + application +} + +application { + mainClass.set("io.heapy.kodein.MainKt") +} + +tasks.withType().configureEach { + kotlinOptions.jvmTarget = "11" +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation(kotlin("stdlib-jdk8")) + implementation("org.kodein.di:kodein-di-jvm:7.2.0") +} diff --git a/kodein-deep/src/main/kotlin/io/heapy/kodein/Main.kt b/kodein-deep/src/main/kotlin/io/heapy/kodein/Main.kt new file mode 100644 index 0000000..03be44c --- /dev/null +++ b/kodein-deep/src/main/kotlin/io/heapy/kodein/Main.kt @@ -0,0 +1,117 @@ +package io.heapy.kodein + +import io.heapy.sample.common2.* +import org.kodein.di.DI +import org.kodein.di.bind +import org.kodein.di.direct +import org.kodein.di.instance +import org.kodein.di.singleton + +fun main() { + val s = DI { + bind() with singleton { DefaultService(instance()) } + bind() with singleton { DefaultService1(instance()) } + bind() with singleton { DefaultService2(instance()) } + bind() with singleton { DefaultService3(instance()) } + bind() with singleton { DefaultService4(instance()) } + bind() with singleton { DefaultService5(instance()) } + bind() with singleton { DefaultService6(instance()) } + bind() with singleton { DefaultService7(instance()) } + bind() with singleton { DefaultService8(instance()) } + bind() with singleton { DefaultService9(instance()) } + bind() with singleton { DefaultService10(instance()) } + bind() with singleton { DefaultService11(instance()) } + bind() with singleton { DefaultService12(instance()) } + bind() with singleton { DefaultService13(instance()) } + bind() with singleton { DefaultService14(instance()) } + bind() with singleton { DefaultService15(instance()) } + bind() with singleton { DefaultService16(instance()) } + bind() with singleton { DefaultService17(instance()) } + bind() with singleton { DefaultService18(instance()) } + bind() with singleton { DefaultService19(instance()) } + bind() with singleton { DefaultService20(instance()) } + bind() with singleton { DefaultService21(instance()) } + bind() with singleton { DefaultService22(instance()) } + bind() with singleton { DefaultService23(instance()) } + bind() with singleton { DefaultService24(instance()) } + bind() with singleton { DefaultService25(instance()) } + bind() with singleton { DefaultService26(instance()) } + bind() with singleton { DefaultService27(instance()) } + bind() with singleton { DefaultService28(instance()) } + bind() with singleton { DefaultService29(instance()) } + bind() with singleton { DefaultService30(instance()) } + bind() with singleton { DefaultService31(instance()) } + bind() with singleton { DefaultService32(instance()) } + bind() with singleton { DefaultService33(instance()) } + bind() with singleton { DefaultService34(instance()) } + bind() with singleton { DefaultService35(instance()) } + bind() with singleton { DefaultService36(instance()) } + bind() with singleton { DefaultService37(instance()) } + bind() with singleton { DefaultService38(instance()) } + bind() with singleton { DefaultService39(instance()) } + bind() with singleton { DefaultService40(instance()) } + bind() with singleton { DefaultService41(instance()) } + bind() with singleton { DefaultService42(instance()) } + bind() with singleton { DefaultService43(instance()) } + bind() with singleton { DefaultService44(instance()) } + bind() with singleton { DefaultService45(instance()) } + bind() with singleton { DefaultService46(instance()) } + bind() with singleton { DefaultService47(instance()) } + bind() with singleton { DefaultService48(instance()) } + bind() with singleton { DefaultService49(instance()) } + bind() with singleton { DefaultService50(instance()) } + bind() with singleton { DefaultService51(instance()) } + bind() with singleton { DefaultService52(instance()) } + bind() with singleton { DefaultService53(instance()) } + bind() with singleton { DefaultService54(instance()) } + bind() with singleton { DefaultService55(instance()) } + bind() with singleton { DefaultService56(instance()) } + bind() with singleton { DefaultService57(instance()) } + bind() with singleton { DefaultService58(instance()) } + bind() with singleton { DefaultService59(instance()) } + bind() with singleton { DefaultService60(instance()) } + bind() with singleton { DefaultService61(instance()) } + bind() with singleton { DefaultService62(instance()) } + bind() with singleton { DefaultService63(instance()) } + bind() with singleton { DefaultService64(instance()) } + bind() with singleton { DefaultService65(instance()) } + bind() with singleton { DefaultService66(instance()) } + bind() with singleton { DefaultService67(instance()) } + bind() with singleton { DefaultService68(instance()) } + bind() with singleton { DefaultService69(instance()) } + bind() with singleton { DefaultService70(instance()) } + bind() with singleton { DefaultService71(instance()) } + bind() with singleton { DefaultService72(instance()) } + bind() with singleton { DefaultService73(instance()) } + bind() with singleton { DefaultService74(instance()) } + bind() with singleton { DefaultService75(instance()) } + bind() with singleton { DefaultService76(instance()) } + bind() with singleton { DefaultService77(instance()) } + bind() with singleton { DefaultService78(instance()) } + bind() with singleton { DefaultService79(instance()) } + bind() with singleton { DefaultService80(instance()) } + bind() with singleton { DefaultService81(instance()) } + bind() with singleton { DefaultService82(instance()) } + bind() with singleton { DefaultService83(instance()) } + bind() with singleton { DefaultService84(instance()) } + bind() with singleton { DefaultService85(instance()) } + bind() with singleton { DefaultService86(instance()) } + bind() with singleton { DefaultService87(instance()) } + bind() with singleton { DefaultService88(instance()) } + bind() with singleton { DefaultService89(instance()) } + bind() with singleton { DefaultService90(instance()) } + bind() with singleton { DefaultService91(instance()) } + bind() with singleton { DefaultService92(instance()) } + bind() with singleton { DefaultService93(instance()) } + bind() with singleton { DefaultService94(instance()) } + bind() with singleton { DefaultService95(instance()) } + bind() with singleton { DefaultService96(instance()) } + bind() with singleton { DefaultService97(instance()) } + bind() with singleton { DefaultService98(instance()) } + bind() with singleton { DefaultService99(instance()) } + bind() with singleton { DefaultService100(instance()) } + bind() with singleton { DefaultService101() } + }.direct.instance() + + println(s.name()) +} diff --git a/koin-deep/build.gradle.kts b/koin-deep/build.gradle.kts new file mode 100644 index 0000000..c32f740 --- /dev/null +++ b/koin-deep/build.gradle.kts @@ -0,0 +1,19 @@ +plugins { + kotlin("jvm").version("1.4.30-M1") + application +} + +application { + mainClass.set("io.heapy.koin.MainKt") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation(kotlin("stdlib-jdk8")) + implementation("org.koin:koin-core:2.2.1") +} diff --git a/koin-deep/src/main/kotlin/io/heapy/koin/Main.kt b/koin-deep/src/main/kotlin/io/heapy/koin/Main.kt new file mode 100644 index 0000000..5412648 --- /dev/null +++ b/koin-deep/src/main/kotlin/io/heapy/koin/Main.kt @@ -0,0 +1,116 @@ +package io.heapy.koin + +import io.heapy.sample.common2.* +import org.koin.dsl.koinApplication +import org.koin.dsl.module + +fun main() { + val s = koinApplication { + modules(module { + single { DefaultService(get()) } + single { DefaultService1(get()) } + single { DefaultService2(get()) } + single { DefaultService3(get()) } + single { DefaultService4(get()) } + single { DefaultService5(get()) } + single { DefaultService6(get()) } + single { DefaultService7(get()) } + single { DefaultService8(get()) } + single { DefaultService9(get()) } + single { DefaultService10(get()) } + single { DefaultService11(get()) } + single { DefaultService12(get()) } + single { DefaultService13(get()) } + single { DefaultService14(get()) } + single { DefaultService15(get()) } + single { DefaultService16(get()) } + single { DefaultService17(get()) } + single { DefaultService18(get()) } + single { DefaultService19(get()) } + single { DefaultService20(get()) } + single { DefaultService21(get()) } + single { DefaultService22(get()) } + single { DefaultService23(get()) } + single { DefaultService24(get()) } + single { DefaultService25(get()) } + single { DefaultService26(get()) } + single { DefaultService27(get()) } + single { DefaultService28(get()) } + single { DefaultService29(get()) } + single { DefaultService30(get()) } + single { DefaultService31(get()) } + single { DefaultService32(get()) } + single { DefaultService33(get()) } + single { DefaultService34(get()) } + single { DefaultService35(get()) } + single { DefaultService36(get()) } + single { DefaultService37(get()) } + single { DefaultService38(get()) } + single { DefaultService39(get()) } + single { DefaultService40(get()) } + single { DefaultService41(get()) } + single { DefaultService42(get()) } + single { DefaultService43(get()) } + single { DefaultService44(get()) } + single { DefaultService45(get()) } + single { DefaultService46(get()) } + single { DefaultService47(get()) } + single { DefaultService48(get()) } + single { DefaultService49(get()) } + single { DefaultService50(get()) } + single { DefaultService51(get()) } + single { DefaultService52(get()) } + single { DefaultService53(get()) } + single { DefaultService54(get()) } + single { DefaultService55(get()) } + single { DefaultService56(get()) } + single { DefaultService57(get()) } + single { DefaultService58(get()) } + single { DefaultService59(get()) } + single { DefaultService60(get()) } + single { DefaultService61(get()) } + single { DefaultService62(get()) } + single { DefaultService63(get()) } + single { DefaultService64(get()) } + single { DefaultService65(get()) } + single { DefaultService66(get()) } + single { DefaultService67(get()) } + single { DefaultService68(get()) } + single { DefaultService69(get()) } + single { DefaultService70(get()) } + single { DefaultService71(get()) } + single { DefaultService72(get()) } + single { DefaultService73(get()) } + single { DefaultService74(get()) } + single { DefaultService75(get()) } + single { DefaultService76(get()) } + single { DefaultService77(get()) } + single { DefaultService78(get()) } + single { DefaultService79(get()) } + single { DefaultService80(get()) } + single { DefaultService81(get()) } + single { DefaultService82(get()) } + single { DefaultService83(get()) } + single { DefaultService84(get()) } + single { DefaultService85(get()) } + single { DefaultService86(get()) } + single { DefaultService87(get()) } + single { DefaultService88(get()) } + single { DefaultService89(get()) } + single { DefaultService90(get()) } + single { DefaultService91(get()) } + single { DefaultService92(get()) } + single { DefaultService93(get()) } + single { DefaultService94(get()) } + single { DefaultService95(get()) } + single { DefaultService96(get()) } + single { DefaultService97(get()) } + single { DefaultService98(get()) } + single { DefaultService99(get()) } + single { DefaultService100(get()) } + single { DefaultService101() } + }) + }.koin.get() + + println(s.name()) +} diff --git a/komodo-deep/build.gradle.kts b/komodo-deep/build.gradle.kts new file mode 100644 index 0000000..fefdbae --- /dev/null +++ b/komodo-deep/build.gradle.kts @@ -0,0 +1,26 @@ +plugins { + kotlin("jvm").version("1.4.30-M1") + application +} + +application { + mainClass.set("io.heapy.komodo.MainKt") +} + +tasks.withType().configureEach { + kotlinOptions.jvmTarget = "11" +} + +repositories { + jcenter() + maven { + url = uri("https://dl.bintray.com/heapy/heap-dev") + } +} + +dependencies { + implementation(project(":common-deep")) + + implementation(kotlin("stdlib-jdk8")) + implementation("io.heapy.komodo:komodo-di:0.1.0-development+000084") +} diff --git a/komodo-deep/src/main/java/io/heapy/komodo/Main.kt b/komodo-deep/src/main/java/io/heapy/komodo/Main.kt new file mode 100644 index 0000000..a078cd9 --- /dev/null +++ b/komodo-deep/src/main/java/io/heapy/komodo/Main.kt @@ -0,0 +1,118 @@ +package io.heapy.komodo + +import io.heapy.komodo.di.createContextAndGet +import io.heapy.komodo.di.module +import io.heapy.komodo.di.provide +import io.heapy.komodo.di.type +import io.heapy.sample.common2.* + +suspend fun main() { + val s = createContextAndGet(type(), mainModule) + println(s.name()) +} + +val mainModule by module { + provide(::DefaultService) + provide(::DefaultService1) + provide(::DefaultService2) + provide(::DefaultService3) + provide(::DefaultService4) + provide(::DefaultService5) + provide(::DefaultService6) + provide(::DefaultService7) + provide(::DefaultService8) + provide(::DefaultService9) + provide(::DefaultService10) + provide(::DefaultService11) + provide(::DefaultService12) + provide(::DefaultService13) + provide(::DefaultService14) + provide(::DefaultService15) + provide(::DefaultService16) + provide(::DefaultService17) + provide(::DefaultService18) + provide(::DefaultService19) + provide(::DefaultService20) + provide(::DefaultService21) + provide(::DefaultService22) + provide(::DefaultService23) + provide(::DefaultService24) + provide(::DefaultService25) + provide(::DefaultService26) + provide(::DefaultService27) + provide(::DefaultService28) + provide(::DefaultService29) + provide(::DefaultService30) + provide(::DefaultService31) + provide(::DefaultService32) + provide(::DefaultService33) + provide(::DefaultService34) + provide(::DefaultService35) + provide(::DefaultService36) + provide(::DefaultService37) + provide(::DefaultService38) + provide(::DefaultService39) + provide(::DefaultService40) + provide(::DefaultService41) + provide(::DefaultService42) + provide(::DefaultService43) + provide(::DefaultService44) + provide(::DefaultService45) + provide(::DefaultService46) + provide(::DefaultService47) + provide(::DefaultService48) + provide(::DefaultService49) + provide(::DefaultService50) + provide(::DefaultService51) + provide(::DefaultService52) + provide(::DefaultService53) + provide(::DefaultService54) + provide(::DefaultService55) + provide(::DefaultService56) + provide(::DefaultService57) + provide(::DefaultService58) + provide(::DefaultService59) + provide(::DefaultService60) + provide(::DefaultService61) + provide(::DefaultService62) + provide(::DefaultService63) + provide(::DefaultService64) + provide(::DefaultService65) + provide(::DefaultService66) + provide(::DefaultService67) + provide(::DefaultService68) + provide(::DefaultService69) + provide(::DefaultService70) + provide(::DefaultService71) + provide(::DefaultService72) + provide(::DefaultService73) + provide(::DefaultService74) + provide(::DefaultService75) + provide(::DefaultService76) + provide(::DefaultService77) + provide(::DefaultService78) + provide(::DefaultService79) + provide(::DefaultService80) + provide(::DefaultService81) + provide(::DefaultService82) + provide(::DefaultService83) + provide(::DefaultService84) + provide(::DefaultService85) + provide(::DefaultService86) + provide(::DefaultService87) + provide(::DefaultService88) + provide(::DefaultService89) + provide(::DefaultService90) + provide(::DefaultService91) + provide(::DefaultService92) + provide(::DefaultService93) + provide(::DefaultService94) + provide(::DefaultService95) + provide(::DefaultService96) + provide(::DefaultService97) + provide(::DefaultService98) + provide(::DefaultService99) + provide(::DefaultService100) + provide(::DefaultService101) +} + diff --git a/owb-deep/build.gradle.kts b/owb-deep/build.gradle.kts new file mode 100644 index 0000000..9dbbbef --- /dev/null +++ b/owb-deep/build.gradle.kts @@ -0,0 +1,24 @@ +plugins { + java + application +} + +application { + mainClass.set("org.objectstyle.owb.Main") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation("org.apache.geronimo.specs:geronimo-annotation_1.3_spec:1.0") + implementation("org.apache.geronimo.specs:geronimo-atinject_1.0_spec:1.0") + implementation("org.apache.geronimo.specs:geronimo-jcdi_2.0_spec:1.0") + implementation("org.apache.geronimo.specs:geronimo-interceptor_1.2_spec:1.0") + implementation("org.apache.openwebbeans:openwebbeans-impl:2.0.16") + implementation("org.apache.openwebbeans:openwebbeans-spi:2.0.16") + implementation("org.apache.openwebbeans:openwebbeans-se:2.0.16") +} diff --git a/owb-deep/src/main/java/org/objectstyle/owb/Main.java b/owb-deep/src/main/java/org/objectstyle/owb/Main.java new file mode 100644 index 0000000..83805e1 --- /dev/null +++ b/owb-deep/src/main/java/org/objectstyle/owb/Main.java @@ -0,0 +1,21 @@ +package org.objectstyle.owb; + + +import io.heapy.sample.common2.Service; + +import javax.enterprise.inject.se.SeContainer; +import javax.enterprise.inject.se.SeContainerInitializer; +import javax.enterprise.inject.spi.CDI; + +public class Main { + + public static void main(String[] args) { + SeContainer cdiContainer = SeContainerInitializer.newInstance() + .disableDiscovery() + .addBeanClasses(MainModule.class) + .initialize(); + Service s = CDI.current().select(Service.class).get(); + + System.out.println(s.name()); + } +} diff --git a/owb-deep/src/main/java/org/objectstyle/owb/MainModule.java b/owb-deep/src/main/java/org/objectstyle/owb/MainModule.java new file mode 100644 index 0000000..0ad6b98 --- /dev/null +++ b/owb-deep/src/main/java/org/objectstyle/owb/MainModule.java @@ -0,0 +1,623 @@ +package org.objectstyle.owb; + +import io.heapy.sample.common2.*; + +import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.inject.Produces; + + +@ApplicationScoped +public class MainModule { + + @Produces + @ApplicationScoped + Service provideService(Service1 service) { + return new DefaultService(service); + } + + @Produces + @ApplicationScoped + Service1 provideService1(Service2 service) { + return new DefaultService1(service); + } + + @Produces + @ApplicationScoped + Service2 provideService2(Service3 service) { + return new DefaultService2(service); + } + + @Produces + @ApplicationScoped + Service3 provideService3(Service4 service) { + return new DefaultService3(service); + } + + @Produces + @ApplicationScoped + Service4 provideService4(Service5 service) { + return new DefaultService4(service); + } + + @Produces + @ApplicationScoped + Service5 provideService5(Service6 service) { + return new DefaultService5(service); + } + + @Produces + @ApplicationScoped + Service6 provideService6(Service7 service) { + return new DefaultService6(service); + } + + @Produces + @ApplicationScoped + Service7 provideService7(Service8 service) { + return new DefaultService7(service); + } + + @Produces + @ApplicationScoped + Service8 provideService8(Service9 service) { + return new DefaultService8(service); + } + + @Produces + @ApplicationScoped + Service9 provideService9(Service10 service) { + return new DefaultService9(service); + } + + @Produces + @ApplicationScoped + Service10 provideService10(Service11 service) { + return new DefaultService10(service); + } + + @Produces + @ApplicationScoped + Service11 provideService11(Service12 service) { + return new DefaultService11(service); + } + + @Produces + @ApplicationScoped + Service12 provideService12(Service13 service) { + return new DefaultService12(service); + } + + @Produces + @ApplicationScoped + Service13 provideService13(Service14 service) { + return new DefaultService13(service); + } + + @Produces + @ApplicationScoped + Service14 provideService14(Service15 service) { + return new DefaultService14(service); + } + + @Produces + @ApplicationScoped + Service15 provideService15(Service16 service) { + return new DefaultService15(service); + } + + @Produces + @ApplicationScoped + Service16 provideService16(Service17 service) { + return new DefaultService16(service); + } + + @Produces + @ApplicationScoped + Service17 provideService17(Service18 service) { + return new DefaultService17(service); + } + + @Produces + @ApplicationScoped + Service18 provideService18(Service19 service) { + return new DefaultService18(service); + } + + @Produces + @ApplicationScoped + Service19 provideService19(Service20 service) { + return new DefaultService19(service); + } + + @Produces + @ApplicationScoped + Service20 provideService20(Service21 service) { + return new DefaultService20(service); + } + + @Produces + @ApplicationScoped + Service21 provideService21(Service22 service) { + return new DefaultService21(service); + } + + @Produces + @ApplicationScoped + Service22 provideService22(Service23 service) { + return new DefaultService22(service); + } + + @Produces + @ApplicationScoped + Service23 provideService23(Service24 service) { + return new DefaultService23(service); + } + + @Produces + @ApplicationScoped + Service24 provideService24(Service25 service) { + return new DefaultService24(service); + } + + @Produces + @ApplicationScoped + Service25 provideService25(Service26 service) { + return new DefaultService25(service); + } + + @Produces + @ApplicationScoped + Service26 provideService26(Service27 service) { + return new DefaultService26(service); + } + + @Produces + @ApplicationScoped + Service27 provideService27(Service28 service) { + return new DefaultService27(service); + } + + @Produces + @ApplicationScoped + Service28 provideService28(Service29 service) { + return new DefaultService28(service); + } + + @Produces + @ApplicationScoped + Service29 provideService29(Service30 service) { + return new DefaultService29(service); + } + + @Produces + @ApplicationScoped + Service30 provideService30(Service31 service) { + return new DefaultService30(service); + } + + @Produces + @ApplicationScoped + Service31 provideService31(Service32 service) { + return new DefaultService31(service); + } + + @Produces + @ApplicationScoped + Service32 provideService32(Service33 service) { + return new DefaultService32(service); + } + + @Produces + @ApplicationScoped + Service33 provideService33(Service34 service) { + return new DefaultService33(service); + } + + @Produces + @ApplicationScoped + Service34 provideService34(Service35 service) { + return new DefaultService34(service); + } + + @Produces + @ApplicationScoped + Service35 provideService35(Service36 service) { + return new DefaultService35(service); + } + + @Produces + @ApplicationScoped + Service36 provideService36(Service37 service) { + return new DefaultService36(service); + } + + @Produces + @ApplicationScoped + Service37 provideService37(Service38 service) { + return new DefaultService37(service); + } + + @Produces + @ApplicationScoped + Service38 provideService38(Service39 service) { + return new DefaultService38(service); + } + + @Produces + @ApplicationScoped + Service39 provideService39(Service40 service) { + return new DefaultService39(service); + } + + @Produces + @ApplicationScoped + Service40 provideService40(Service41 service) { + return new DefaultService40(service); + } + + @Produces + @ApplicationScoped + Service41 provideService41(Service42 service) { + return new DefaultService41(service); + } + + @Produces + @ApplicationScoped + Service42 provideService42(Service43 service) { + return new DefaultService42(service); + } + + @Produces + @ApplicationScoped + Service43 provideService43(Service44 service) { + return new DefaultService43(service); + } + + @Produces + @ApplicationScoped + Service44 provideService44(Service45 service) { + return new DefaultService44(service); + } + + @Produces + @ApplicationScoped + Service45 provideService45(Service46 service) { + return new DefaultService45(service); + } + + @Produces + @ApplicationScoped + Service46 provideService46(Service47 service) { + return new DefaultService46(service); + } + + @Produces + @ApplicationScoped + Service47 provideService47(Service48 service) { + return new DefaultService47(service); + } + + @Produces + @ApplicationScoped + Service48 provideService48(Service49 service) { + return new DefaultService48(service); + } + + @Produces + @ApplicationScoped + Service49 provideService49(Service50 service) { + return new DefaultService49(service); + } + + @Produces + @ApplicationScoped + Service50 provideService50(Service51 service) { + return new DefaultService50(service); + } + + @Produces + @ApplicationScoped + Service51 provideService51(Service52 service) { + return new DefaultService51(service); + } + + @Produces + @ApplicationScoped + Service52 provideService52(Service53 service) { + return new DefaultService52(service); + } + + @Produces + @ApplicationScoped + Service53 provideService53(Service54 service) { + return new DefaultService53(service); + } + + @Produces + @ApplicationScoped + Service54 provideService54(Service55 service) { + return new DefaultService54(service); + } + + @Produces + @ApplicationScoped + Service55 provideService55(Service56 service) { + return new DefaultService55(service); + } + + @Produces + @ApplicationScoped + Service56 provideService56(Service57 service) { + return new DefaultService56(service); + } + + @Produces + @ApplicationScoped + Service57 provideService57(Service58 service) { + return new DefaultService57(service); + } + + @Produces + @ApplicationScoped + Service58 provideService58(Service59 service) { + return new DefaultService58(service); + } + + @Produces + @ApplicationScoped + Service59 provideService59(Service60 service) { + return new DefaultService59(service); + } + + @Produces + @ApplicationScoped + Service60 provideService60(Service61 service) { + return new DefaultService60(service); + } + + @Produces + @ApplicationScoped + Service61 provideService61(Service62 service) { + return new DefaultService61(service); + } + + @Produces + @ApplicationScoped + Service62 provideService62(Service63 service) { + return new DefaultService62(service); + } + + @Produces + @ApplicationScoped + Service63 provideService63(Service64 service) { + return new DefaultService63(service); + } + + @Produces + @ApplicationScoped + Service64 provideService64(Service65 service) { + return new DefaultService64(service); + } + + @Produces + @ApplicationScoped + Service65 provideService65(Service66 service) { + return new DefaultService65(service); + } + + @Produces + @ApplicationScoped + Service66 provideService66(Service67 service) { + return new DefaultService66(service); + } + + @Produces + @ApplicationScoped + Service67 provideService67(Service68 service) { + return new DefaultService67(service); + } + + @Produces + @ApplicationScoped + Service68 provideService68(Service69 service) { + return new DefaultService68(service); + } + + @Produces + @ApplicationScoped + Service69 provideService69(Service70 service) { + return new DefaultService69(service); + } + + @Produces + @ApplicationScoped + Service70 provideService70(Service71 service) { + return new DefaultService70(service); + } + + @Produces + @ApplicationScoped + Service71 provideService71(Service72 service) { + return new DefaultService71(service); + } + + @Produces + @ApplicationScoped + Service72 provideService72(Service73 service) { + return new DefaultService72(service); + } + + @Produces + @ApplicationScoped + Service73 provideService73(Service74 service) { + return new DefaultService73(service); + } + + @Produces + @ApplicationScoped + Service74 provideService74(Service75 service) { + return new DefaultService74(service); + } + + @Produces + @ApplicationScoped + Service75 provideService75(Service76 service) { + return new DefaultService75(service); + } + + @Produces + @ApplicationScoped + Service76 provideService76(Service77 service) { + return new DefaultService76(service); + } + + @Produces + @ApplicationScoped + Service77 provideService77(Service78 service) { + return new DefaultService77(service); + } + + @Produces + @ApplicationScoped + Service78 provideService78(Service79 service) { + return new DefaultService78(service); + } + + @Produces + @ApplicationScoped + Service79 provideService79(Service80 service) { + return new DefaultService79(service); + } + + @Produces + @ApplicationScoped + Service80 provideService80(Service81 service) { + return new DefaultService80(service); + } + + @Produces + @ApplicationScoped + Service81 provideService81(Service82 service) { + return new DefaultService81(service); + } + + @Produces + @ApplicationScoped + Service82 provideService82(Service83 service) { + return new DefaultService82(service); + } + + @Produces + @ApplicationScoped + Service83 provideService83(Service84 service) { + return new DefaultService83(service); + } + + @Produces + @ApplicationScoped + Service84 provideService84(Service85 service) { + return new DefaultService84(service); + } + + @Produces + @ApplicationScoped + Service85 provideService85(Service86 service) { + return new DefaultService85(service); + } + + @Produces + @ApplicationScoped + Service86 provideService86(Service87 service) { + return new DefaultService86(service); + } + + @Produces + @ApplicationScoped + Service87 provideService87(Service88 service) { + return new DefaultService87(service); + } + + @Produces + @ApplicationScoped + Service88 provideService88(Service89 service) { + return new DefaultService88(service); + } + + @Produces + @ApplicationScoped + Service89 provideService89(Service90 service) { + return new DefaultService89(service); + } + + @Produces + @ApplicationScoped + Service90 provideService90(Service91 service) { + return new DefaultService90(service); + } + + @Produces + @ApplicationScoped + Service91 provideService91(Service92 service) { + return new DefaultService91(service); + } + + @Produces + @ApplicationScoped + Service92 provideService92(Service93 service) { + return new DefaultService92(service); + } + + @Produces + @ApplicationScoped + Service93 provideService93(Service94 service) { + return new DefaultService93(service); + } + + @Produces + @ApplicationScoped + Service94 provideService94(Service95 service) { + return new DefaultService94(service); + } + + @Produces + @ApplicationScoped + Service95 provideService95(Service96 service) { + return new DefaultService95(service); + } + + @Produces + @ApplicationScoped + Service96 provideService96(Service97 service) { + return new DefaultService96(service); + } + + @Produces + @ApplicationScoped + Service97 provideService97(Service98 service) { + return new DefaultService97(service); + } + + @Produces + @ApplicationScoped + Service98 provideService98(Service99 service) { + return new DefaultService98(service); + } + + @Produces + @ApplicationScoped + Service99 provideService99(Service100 service) { + return new DefaultService99(service); + } + + @Produces + @ApplicationScoped + Service100 provideService100(Service101 service) { + return new DefaultService100(service); + } + + @Produces + @ApplicationScoped + Service101 provideService101() { + return new DefaultService101(); + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index 78653b0..dd49136 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,15 +2,23 @@ include("common") include("common-deep") include("baseline") include("baseline-deep") -include("baseline2") include("kodein") +include("kodein-deep") include("koin") +include("koin-deep") include("komodo") +include("komodo-deep") include("bootique") +include("bootique-deep") include("dagger") include("dagger-deep") include("guice") +include("guice-deep") include("cayennedi") +include("cayennedi-deep") include("spring") +include("spring-deep") include("springboot") +include("springboot-deep") include("owb") +include("owb-deep") diff --git a/spring-deep/build.gradle.kts b/spring-deep/build.gradle.kts new file mode 100644 index 0000000..5096a91 --- /dev/null +++ b/spring-deep/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + java + application +} + +application { + mainClass.set("org.objectstyle.spring.Main") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation("org.springframework:spring-context:5.2.5.RELEASE") +} diff --git a/spring-deep/src/main/java/org/objectstyle/spring/Main.java b/spring-deep/src/main/java/org/objectstyle/spring/Main.java new file mode 100644 index 0000000..a669d2f --- /dev/null +++ b/spring-deep/src/main/java/org/objectstyle/spring/Main.java @@ -0,0 +1,525 @@ +package org.objectstyle.spring; + +import io.heapy.sample.common2.*; +import org.springframework.context.annotation.AnnotationConfigApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.stereotype.Component; + +@Component +public class Main { + + @Bean + public Service service(Service1 service) { + return new DefaultService(service); + } + + @Bean + public Service1 service1(Service2 service) { + return new DefaultService1(service); + } + + @Bean + public Service2 service2(Service3 service) { + return new DefaultService2(service); + } + + @Bean + public Service3 service3(Service4 service) { + return new DefaultService3(service); + } + + @Bean + public Service4 service4(Service5 service) { + return new DefaultService4(service); + } + + @Bean + public Service5 service5(Service6 service) { + return new DefaultService5(service); + } + + @Bean + public Service6 service6(Service7 service) { + return new DefaultService6(service); + } + + @Bean + public Service7 service7(Service8 service) { + return new DefaultService7(service); + } + + @Bean + public Service8 service8(Service9 service) { + return new DefaultService8(service); + } + + @Bean + public Service9 service9(Service10 service) { + return new DefaultService9(service); + } + + @Bean + public Service10 service10(Service11 service) { + return new DefaultService10(service); + } + + @Bean + public Service11 service11(Service12 service) { + return new DefaultService11(service); + } + + @Bean + public Service12 service12(Service13 service) { + return new DefaultService12(service); + } + + @Bean + public Service13 service13(Service14 service) { + return new DefaultService13(service); + } + + @Bean + public Service14 service14(Service15 service) { + return new DefaultService14(service); + } + + @Bean + public Service15 service15(Service16 service) { + return new DefaultService15(service); + } + + @Bean + public Service16 service16(Service17 service) { + return new DefaultService16(service); + } + + @Bean + public Service17 service17(Service18 service) { + return new DefaultService17(service); + } + + @Bean + public Service18 service18(Service19 service) { + return new DefaultService18(service); + } + + @Bean + public Service19 service19(Service20 service) { + return new DefaultService19(service); + } + + @Bean + public Service20 service20(Service21 service) { + return new DefaultService20(service); + } + + @Bean + public Service21 service21(Service22 service) { + return new DefaultService21(service); + } + + @Bean + public Service22 service22(Service23 service) { + return new DefaultService22(service); + } + + @Bean + public Service23 service23(Service24 service) { + return new DefaultService23(service); + } + + @Bean + public Service24 service24(Service25 service) { + return new DefaultService24(service); + } + + @Bean + public Service25 service25(Service26 service) { + return new DefaultService25(service); + } + + @Bean + public Service26 service26(Service27 service) { + return new DefaultService26(service); + } + + @Bean + public Service27 service27(Service28 service) { + return new DefaultService27(service); + } + + @Bean + public Service28 service28(Service29 service) { + return new DefaultService28(service); + } + + @Bean + public Service29 service29(Service30 service) { + return new DefaultService29(service); + } + + @Bean + public Service30 service30(Service31 service) { + return new DefaultService30(service); + } + + @Bean + public Service31 service31(Service32 service) { + return new DefaultService31(service); + } + + @Bean + public Service32 service32(Service33 service) { + return new DefaultService32(service); + } + + @Bean + public Service33 service33(Service34 service) { + return new DefaultService33(service); + } + + @Bean + public Service34 service34(Service35 service) { + return new DefaultService34(service); + } + + @Bean + public Service35 service35(Service36 service) { + return new DefaultService35(service); + } + + @Bean + public Service36 service36(Service37 service) { + return new DefaultService36(service); + } + + @Bean + public Service37 service37(Service38 service) { + return new DefaultService37(service); + } + + @Bean + public Service38 service38(Service39 service) { + return new DefaultService38(service); + } + + @Bean + public Service39 service39(Service40 service) { + return new DefaultService39(service); + } + + @Bean + public Service40 service40(Service41 service) { + return new DefaultService40(service); + } + + @Bean + public Service41 service41(Service42 service) { + return new DefaultService41(service); + } + + @Bean + public Service42 service42(Service43 service) { + return new DefaultService42(service); + } + + @Bean + public Service43 service43(Service44 service) { + return new DefaultService43(service); + } + + @Bean + public Service44 service44(Service45 service) { + return new DefaultService44(service); + } + + @Bean + public Service45 service45(Service46 service) { + return new DefaultService45(service); + } + + @Bean + public Service46 service46(Service47 service) { + return new DefaultService46(service); + } + + @Bean + public Service47 service47(Service48 service) { + return new DefaultService47(service); + } + + @Bean + public Service48 service48(Service49 service) { + return new DefaultService48(service); + } + + @Bean + public Service49 service49(Service50 service) { + return new DefaultService49(service); + } + + @Bean + public Service50 service50(Service51 service) { + return new DefaultService50(service); + } + + @Bean + public Service51 service51(Service52 service) { + return new DefaultService51(service); + } + + @Bean + public Service52 service52(Service53 service) { + return new DefaultService52(service); + } + + @Bean + public Service53 service53(Service54 service) { + return new DefaultService53(service); + } + + @Bean + public Service54 service54(Service55 service) { + return new DefaultService54(service); + } + + @Bean + public Service55 service55(Service56 service) { + return new DefaultService55(service); + } + + @Bean + public Service56 service56(Service57 service) { + return new DefaultService56(service); + } + + @Bean + public Service57 service57(Service58 service) { + return new DefaultService57(service); + } + + @Bean + public Service58 service58(Service59 service) { + return new DefaultService58(service); + } + + @Bean + public Service59 service59(Service60 service) { + return new DefaultService59(service); + } + + @Bean + public Service60 service60(Service61 service) { + return new DefaultService60(service); + } + + @Bean + public Service61 service61(Service62 service) { + return new DefaultService61(service); + } + + @Bean + public Service62 service62(Service63 service) { + return new DefaultService62(service); + } + + @Bean + public Service63 service63(Service64 service) { + return new DefaultService63(service); + } + + @Bean + public Service64 service64(Service65 service) { + return new DefaultService64(service); + } + + @Bean + public Service65 service65(Service66 service) { + return new DefaultService65(service); + } + + @Bean + public Service66 service66(Service67 service) { + return new DefaultService66(service); + } + + @Bean + public Service67 service67(Service68 service) { + return new DefaultService67(service); + } + + @Bean + public Service68 service68(Service69 service) { + return new DefaultService68(service); + } + + @Bean + public Service69 service69(Service70 service) { + return new DefaultService69(service); + } + + @Bean + public Service70 service70(Service71 service) { + return new DefaultService70(service); + } + + @Bean + public Service71 service71(Service72 service) { + return new DefaultService71(service); + } + + @Bean + public Service72 service72(Service73 service) { + return new DefaultService72(service); + } + + @Bean + public Service73 service73(Service74 service) { + return new DefaultService73(service); + } + + @Bean + public Service74 service74(Service75 service) { + return new DefaultService74(service); + } + + @Bean + public Service75 service75(Service76 service) { + return new DefaultService75(service); + } + + @Bean + public Service76 service76(Service77 service) { + return new DefaultService76(service); + } + + @Bean + public Service77 service77(Service78 service) { + return new DefaultService77(service); + } + + @Bean + public Service78 service78(Service79 service) { + return new DefaultService78(service); + } + + @Bean + public Service79 service79(Service80 service) { + return new DefaultService79(service); + } + + @Bean + public Service80 service80(Service81 service) { + return new DefaultService80(service); + } + + @Bean + public Service81 service81(Service82 service) { + return new DefaultService81(service); + } + + @Bean + public Service82 service82(Service83 service) { + return new DefaultService82(service); + } + + @Bean + public Service83 service83(Service84 service) { + return new DefaultService83(service); + } + + @Bean + public Service84 service84(Service85 service) { + return new DefaultService84(service); + } + + @Bean + public Service85 service85(Service86 service) { + return new DefaultService85(service); + } + + @Bean + public Service86 service86(Service87 service) { + return new DefaultService86(service); + } + + @Bean + public Service87 service87(Service88 service) { + return new DefaultService87(service); + } + + @Bean + public Service88 service88(Service89 service) { + return new DefaultService88(service); + } + + @Bean + public Service89 service89(Service90 service) { + return new DefaultService89(service); + } + + @Bean + public Service90 service90(Service91 service) { + return new DefaultService90(service); + } + + @Bean + public Service91 service91(Service92 service) { + return new DefaultService91(service); + } + + @Bean + public Service92 service92(Service93 service) { + return new DefaultService92(service); + } + + @Bean + public Service93 service93(Service94 service) { + return new DefaultService93(service); + } + + @Bean + public Service94 service94(Service95 service) { + return new DefaultService94(service); + } + + @Bean + public Service95 service95(Service96 service) { + return new DefaultService95(service); + } + + @Bean + public Service96 service96(Service97 service) { + return new DefaultService96(service); + } + + @Bean + public Service97 service97(Service98 service) { + return new DefaultService97(service); + } + + @Bean + public Service98 service98(Service99 service) { + return new DefaultService98(service); + } + + @Bean + public Service99 service99(Service100 service) { + return new DefaultService99(service); + } + + @Bean + public Service100 service100(Service101 service) { + return new DefaultService100(service); + } + + @Bean + public Service101 service101() { + return new DefaultService101(); + } + + public static void main(String[] args) { + AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Main.class); + System.out.println(context.getBean(Service.class).name()); + } +} diff --git a/springboot-deep/build.gradle.kts b/springboot-deep/build.gradle.kts new file mode 100644 index 0000000..bbed22b --- /dev/null +++ b/springboot-deep/build.gradle.kts @@ -0,0 +1,18 @@ +plugins { + java + application +} + +application { + mainClass.set("io.heapy.springboot.Main") +} + +repositories { + jcenter() +} + +dependencies { + implementation(project(":common-deep")) + + implementation("org.springframework.boot:spring-boot-starter:2.2.6.RELEASE") +} diff --git a/springboot-deep/src/main/java/io/heapy/springboot/Config.java b/springboot-deep/src/main/java/io/heapy/springboot/Config.java new file mode 100644 index 0000000..18f7d2f --- /dev/null +++ b/springboot-deep/src/main/java/io/heapy/springboot/Config.java @@ -0,0 +1,518 @@ +package io.heapy.springboot; + +import io.heapy.sample.common2.*; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class Config { + + @Bean + public Service service(Service1 service) { + return new DefaultService(service); + } + @Bean + public Service1 service1(Service2 service) { + return new DefaultService1(service); + } + + @Bean + public Service2 service2(Service3 service) { + return new DefaultService2(service); + } + + @Bean + public Service3 service3(Service4 service) { + return new DefaultService3(service); + } + + @Bean + public Service4 service4(Service5 service) { + return new DefaultService4(service); + } + + @Bean + public Service5 service5(Service6 service) { + return new DefaultService5(service); + } + + @Bean + public Service6 service6(Service7 service) { + return new DefaultService6(service); + } + + @Bean + public Service7 service7(Service8 service) { + return new DefaultService7(service); + } + + @Bean + public Service8 service8(Service9 service) { + return new DefaultService8(service); + } + + @Bean + public Service9 service9(Service10 service) { + return new DefaultService9(service); + } + + @Bean + public Service10 service10(Service11 service) { + return new DefaultService10(service); + } + + @Bean + public Service11 service11(Service12 service) { + return new DefaultService11(service); + } + + @Bean + public Service12 service12(Service13 service) { + return new DefaultService12(service); + } + + @Bean + public Service13 service13(Service14 service) { + return new DefaultService13(service); + } + + @Bean + public Service14 service14(Service15 service) { + return new DefaultService14(service); + } + + @Bean + public Service15 service15(Service16 service) { + return new DefaultService15(service); + } + + @Bean + public Service16 service16(Service17 service) { + return new DefaultService16(service); + } + + @Bean + public Service17 service17(Service18 service) { + return new DefaultService17(service); + } + + @Bean + public Service18 service18(Service19 service) { + return new DefaultService18(service); + } + + @Bean + public Service19 service19(Service20 service) { + return new DefaultService19(service); + } + + @Bean + public Service20 service20(Service21 service) { + return new DefaultService20(service); + } + + @Bean + public Service21 service21(Service22 service) { + return new DefaultService21(service); + } + + @Bean + public Service22 service22(Service23 service) { + return new DefaultService22(service); + } + + @Bean + public Service23 service23(Service24 service) { + return new DefaultService23(service); + } + + @Bean + public Service24 service24(Service25 service) { + return new DefaultService24(service); + } + + @Bean + public Service25 service25(Service26 service) { + return new DefaultService25(service); + } + + @Bean + public Service26 service26(Service27 service) { + return new DefaultService26(service); + } + + @Bean + public Service27 service27(Service28 service) { + return new DefaultService27(service); + } + + @Bean + public Service28 service28(Service29 service) { + return new DefaultService28(service); + } + + @Bean + public Service29 service29(Service30 service) { + return new DefaultService29(service); + } + + @Bean + public Service30 service30(Service31 service) { + return new DefaultService30(service); + } + + @Bean + public Service31 service31(Service32 service) { + return new DefaultService31(service); + } + + @Bean + public Service32 service32(Service33 service) { + return new DefaultService32(service); + } + + @Bean + public Service33 service33(Service34 service) { + return new DefaultService33(service); + } + + @Bean + public Service34 service34(Service35 service) { + return new DefaultService34(service); + } + + @Bean + public Service35 service35(Service36 service) { + return new DefaultService35(service); + } + + @Bean + public Service36 service36(Service37 service) { + return new DefaultService36(service); + } + + @Bean + public Service37 service37(Service38 service) { + return new DefaultService37(service); + } + + @Bean + public Service38 service38(Service39 service) { + return new DefaultService38(service); + } + + @Bean + public Service39 service39(Service40 service) { + return new DefaultService39(service); + } + + @Bean + public Service40 service40(Service41 service) { + return new DefaultService40(service); + } + + @Bean + public Service41 service41(Service42 service) { + return new DefaultService41(service); + } + + @Bean + public Service42 service42(Service43 service) { + return new DefaultService42(service); + } + + @Bean + public Service43 service43(Service44 service) { + return new DefaultService43(service); + } + + @Bean + public Service44 service44(Service45 service) { + return new DefaultService44(service); + } + + @Bean + public Service45 service45(Service46 service) { + return new DefaultService45(service); + } + + @Bean + public Service46 service46(Service47 service) { + return new DefaultService46(service); + } + + @Bean + public Service47 service47(Service48 service) { + return new DefaultService47(service); + } + + @Bean + public Service48 service48(Service49 service) { + return new DefaultService48(service); + } + + @Bean + public Service49 service49(Service50 service) { + return new DefaultService49(service); + } + + @Bean + public Service50 service50(Service51 service) { + return new DefaultService50(service); + } + + @Bean + public Service51 service51(Service52 service) { + return new DefaultService51(service); + } + + @Bean + public Service52 service52(Service53 service) { + return new DefaultService52(service); + } + + @Bean + public Service53 service53(Service54 service) { + return new DefaultService53(service); + } + + @Bean + public Service54 service54(Service55 service) { + return new DefaultService54(service); + } + + @Bean + public Service55 service55(Service56 service) { + return new DefaultService55(service); + } + + @Bean + public Service56 service56(Service57 service) { + return new DefaultService56(service); + } + + @Bean + public Service57 service57(Service58 service) { + return new DefaultService57(service); + } + + @Bean + public Service58 service58(Service59 service) { + return new DefaultService58(service); + } + + @Bean + public Service59 service59(Service60 service) { + return new DefaultService59(service); + } + + @Bean + public Service60 service60(Service61 service) { + return new DefaultService60(service); + } + + @Bean + public Service61 service61(Service62 service) { + return new DefaultService61(service); + } + + @Bean + public Service62 service62(Service63 service) { + return new DefaultService62(service); + } + + @Bean + public Service63 service63(Service64 service) { + return new DefaultService63(service); + } + + @Bean + public Service64 service64(Service65 service) { + return new DefaultService64(service); + } + + @Bean + public Service65 service65(Service66 service) { + return new DefaultService65(service); + } + + @Bean + public Service66 service66(Service67 service) { + return new DefaultService66(service); + } + + @Bean + public Service67 service67(Service68 service) { + return new DefaultService67(service); + } + + @Bean + public Service68 service68(Service69 service) { + return new DefaultService68(service); + } + + @Bean + public Service69 service69(Service70 service) { + return new DefaultService69(service); + } + + @Bean + public Service70 service70(Service71 service) { + return new DefaultService70(service); + } + + @Bean + public Service71 service71(Service72 service) { + return new DefaultService71(service); + } + + @Bean + public Service72 service72(Service73 service) { + return new DefaultService72(service); + } + + @Bean + public Service73 service73(Service74 service) { + return new DefaultService73(service); + } + + @Bean + public Service74 service74(Service75 service) { + return new DefaultService74(service); + } + + @Bean + public Service75 service75(Service76 service) { + return new DefaultService75(service); + } + + @Bean + public Service76 service76(Service77 service) { + return new DefaultService76(service); + } + + @Bean + public Service77 service77(Service78 service) { + return new DefaultService77(service); + } + + @Bean + public Service78 service78(Service79 service) { + return new DefaultService78(service); + } + + @Bean + public Service79 service79(Service80 service) { + return new DefaultService79(service); + } + + @Bean + public Service80 service80(Service81 service) { + return new DefaultService80(service); + } + + @Bean + public Service81 service81(Service82 service) { + return new DefaultService81(service); + } + + @Bean + public Service82 service82(Service83 service) { + return new DefaultService82(service); + } + + @Bean + public Service83 service83(Service84 service) { + return new DefaultService83(service); + } + + @Bean + public Service84 service84(Service85 service) { + return new DefaultService84(service); + } + + @Bean + public Service85 service85(Service86 service) { + return new DefaultService85(service); + } + + @Bean + public Service86 service86(Service87 service) { + return new DefaultService86(service); + } + + @Bean + public Service87 service87(Service88 service) { + return new DefaultService87(service); + } + + @Bean + public Service88 service88(Service89 service) { + return new DefaultService88(service); + } + + @Bean + public Service89 service89(Service90 service) { + return new DefaultService89(service); + } + + @Bean + public Service90 service90(Service91 service) { + return new DefaultService90(service); + } + + @Bean + public Service91 service91(Service92 service) { + return new DefaultService91(service); + } + + @Bean + public Service92 service92(Service93 service) { + return new DefaultService92(service); + } + + @Bean + public Service93 service93(Service94 service) { + return new DefaultService93(service); + } + + @Bean + public Service94 service94(Service95 service) { + return new DefaultService94(service); + } + + @Bean + public Service95 service95(Service96 service) { + return new DefaultService95(service); + } + + @Bean + public Service96 service96(Service97 service) { + return new DefaultService96(service); + } + + @Bean + public Service97 service97(Service98 service) { + return new DefaultService97(service); + } + + @Bean + public Service98 service98(Service99 service) { + return new DefaultService98(service); + } + + @Bean + public Service99 service99(Service100 service) { + return new DefaultService99(service); + } + + @Bean + public Service100 service100(Service101 service) { + return new DefaultService100(service); + } + + @Bean + public Service101 service101() { + return new DefaultService101(); + } +} diff --git a/springboot-deep/src/main/java/io/heapy/springboot/Main.java b/springboot-deep/src/main/java/io/heapy/springboot/Main.java new file mode 100644 index 0000000..7da3fcb --- /dev/null +++ b/springboot-deep/src/main/java/io/heapy/springboot/Main.java @@ -0,0 +1,12 @@ +package io.heapy.springboot; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Main { + + public static void main(String[] args) { + SpringApplication.run(Main.class, args); + } +} diff --git a/springboot-deep/src/main/java/io/heapy/springboot/Runner.java b/springboot-deep/src/main/java/io/heapy/springboot/Runner.java new file mode 100644 index 0000000..c60ba5e --- /dev/null +++ b/springboot-deep/src/main/java/io/heapy/springboot/Runner.java @@ -0,0 +1,20 @@ +package io.heapy.springboot; + +import io.heapy.sample.common2.Service; +import org.springframework.boot.CommandLineRunner; +import org.springframework.stereotype.Component; + +@Component +public class Runner implements CommandLineRunner { + + private Service service; + + public Runner(Service service) { + this.service = service; + } + + @Override + public void run(String... args) throws Exception { + System.out.println(service.name()); + } +}