-
Notifications
You must be signed in to change notification settings - Fork 694
Commit 323aa60
Move
RepositoryMethodContext are now made available for dependency injection via RepositoryConfigurationExtensionSupport.registerBeansForRoot(...). Moved RMC into repository.core package (previously repository.core.support) and only expose factory methods on DefaultRepositoryMethodContext. DRMC also exposes a injection proxy lookup method that creates a proxy equipped with a TargetSource delegating to DRMC.getInstance() (previously ....getContext()). An additional, static DRMC.forMethod(...) allows the creation of a default instance for testing purposes.
Rename getRepository() to getMetadata() on RMC.
Fixes #3175.
Original pull request: #3176 RepositoryMethodContext
to repository.core
package.1 parent 55afe84 commit 323aa60
File tree
8 files changed
+207
-108
lines changed- src
- main/java/org/springframework/data/repository
- config
- core
- support
- test/java/org/springframework/data/repository
- config
- core/support
8 files changed
+207
-108
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 | + | ||
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
40 | + | ||
39 | 41 |
| |
42 | + | ||
40 | 43 |
| |
41 | 44 |
| |
42 | 45 |
| |
| |||
109 | 112 |
| |
110 | 113 |
| |
111 | 114 |
| |
112 | - | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
113 | 122 |
| |
114 | 123 |
| |
115 | 124 |
| |
|
Lines changed: 56 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + |
src/main/java/org/springframework/data/repository/core/support/DefaultRepositoryMethodContext.java
Lines changed: 33 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | + | ||
20 | 21 |
| |
21 | 22 |
| |
23 | + | ||
22 | 24 |
| |
25 | + | ||
23 | 26 |
| |
24 | 27 |
| |
25 | 28 |
| |
26 | 29 |
| |
27 | 30 |
| |
28 | 31 |
| |
32 | + | ||
29 | 33 |
| |
30 | 34 |
| |
31 | - | ||
35 | + | ||
32 | 36 |
| |
33 | 37 |
| |
34 | 38 |
| |
| |||
46 | 50 |
| |
47 | 51 |
| |
48 | 52 |
| |
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
49 | 78 |
| |
50 | - | ||
79 | + | ||
51 | 80 |
| |
52 | 81 |
| |
53 | 82 |
| |
54 | 83 |
| |
55 | 84 |
| |
56 | 85 |
| |
57 | 86 |
| |
87 | + | ||
58 | 88 |
| |
59 | 89 |
| |
60 | 90 |
| |
| |||
65 | 95 |
| |
66 | 96 |
| |
67 | 97 |
| |
68 | - | ||
98 | + | ||
69 | 99 |
| |
70 | 100 |
| |
71 | 101 |
| |
72 | 102 |
| |
73 | 103 |
| |
74 | 104 |
| |
75 | 105 |
| |
76 | - | ||
77 | 106 |
|
Lines changed: 79 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + |
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 | + | ||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
772 | 773 |
| |
773 | 774 |
| |
774 | 775 |
| |
776 | + | ||
775 | 777 |
| |
776 | - | ||
777 | - | ||
778 | + | ||
779 | + | ||
780 | + | ||
781 | + | ||
778 | 782 |
| |
783 | + | ||
779 | 784 |
| |
780 | - | ||
785 | + | ||
781 | 786 |
| |
782 | 787 |
| |
783 | - | ||
784 | 788 |
| |
785 | 789 |
| |
786 | 790 |
| |
|
Lines changed: 0 additions & 94 deletions
This file was deleted.
0 commit comments