Skip to content

Commit 8aa4a80

Browse files
committed
Refactor internals, change _di -> _DI for generated _DI$BeanContextFactory
1 parent b23df14 commit 8aa4a80

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module org.example {
88

99
requires io.avaje.inject;
1010

11-
// register org.example._di$BeanContextFactory from generated sources
12-
provides io.avaje.inject.spi.BeanContextFactory with org.example._di$BeanContextFactory;
11+
// register org.example._DI$BeanContextFactory from generated sources
12+
provides io.avaje.inject.spi.BeanContextFactory with org.example._DI$BeanContextFactory;
1313
}
1414
```
1515

inject-generator/src/main/java/io/avaje/inject/generator/SimpleFactoryWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SimpleFactoryWriter {
2424
" * module example {\n" +
2525
" * requires io.avaje.inject;\n" +
2626
" * \n" +
27-
" * provides io.avaje.inject.spi.BeanContextFactory with %s._di$BeanContextFactory;\n" +
27+
" * provides io.avaje.inject.spi.BeanContextFactory with %s._DI$BeanContextFactory;\n" +
2828
" * \n" +
2929
" * }\n" +
3030
" * \n" +
@@ -60,7 +60,7 @@ class SimpleFactoryWriter {
6060
String pkg = context.getContextPackage();
6161
this.factoryPackage = (pkg != null) ? pkg : ordering.getTopPackage();
6262
context.deriveContextName(factoryPackage);
63-
this.factoryShortName = "_di$BeanContextFactory";
63+
this.factoryShortName = "_DI$BeanContextFactory";
6464
this.factoryFullName = factoryPackage + "." + factoryShortName;
6565
}
6666

inject/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module org.example {
88

99
requires io.avaje.inject;
1010

11-
// register org.example._di$BeanContextFactory from generated sources
12-
provides io.avaje.inject.spi.BeanContextFactory with org.example._di$BeanContextFactory;
11+
// register org.example._DI$BeanContextFactory from generated sources
12+
provides io.avaje.inject.spi.BeanContextFactory with org.example._DI$BeanContextFactory;
1313
}
1414
```
1515

inject/src/main/java/io/avaje/inject/DBeanContextBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public BeanContext build() {
109109
Set<String> moduleNames = factoryOrder.orderFactories();
110110
if (moduleNames.isEmpty()) {
111111
throw new IllegalStateException("No modules found. When using java module system we need an explicit provides clause in module-info like:\n\n" +
112-
" provides io.avaje.inject.spi.BeanContextFactory with org.example._di$BeanContextFactory;\n\n" +
112+
" provides io.avaje.inject.spi.BeanContextFactory with org.example._DI$BeanContextFactory;\n\n" +
113113
" Otherwise perhaps using Gradle and IDEA but with a setup issue?" +
114114
" Review IntelliJ Settings / Build / Build tools / Gradle - 'Build and run using' value and set that to 'Gradle'. " +
115115
" Refer to https://avaje.io/inject#gradle");

0 commit comments

Comments
 (0)