Skip to content

Commit e31da76

Browse files
committed
#171 - Add an intentionally empty custom scope
This is testing the scenario where we are doing a refactor and introducing a new custom scope that will go in between 2 existing scopes (like inserting a new scope into the middle of a hierarchy of scopes)
1 parent 0c4e307 commit e31da76

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.example.custom4;
2+
3+
import io.avaje.inject.InjectModule;
4+
import jakarta.inject.Scope;
5+
6+
@Scope
7+
@InjectModule(requires = BuildScope.class )
8+
public @interface IntentionallyEmptyScope {
9+
}

inject-test/src/test/java/org/example/custom4/MachineScope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
import jakarta.inject.Scope;
55

66
@Scope
7-
@InjectModule(requires = {Machine.class, BuildScope.class})
7+
@InjectModule(requires = {Machine.class, IntentionallyEmptyScope.class})
88
public @interface MachineScope {
99
}

0 commit comments

Comments
 (0)