Commit 67e04a9
committed
fix: restore createContributor for health indicators to maintain bean type compatibility
This change reverts the use of createComposite back to createContributor in PubSub and Spanner health auto-configurations. This ensures that when a single template is present, the registered bean is of type HealthIndicator, maintaining backward compatibility with existing tests and samples. Multi-template scenarios continue to be supported via CompositeHealthContributor.1 parent eecfcc6 commit 67e04a9
File tree
4 files changed
+11
-37
lines changed- spring-cloud-gcp-autoconfigure/src
- main/java/com/google/cloud/spring/autoconfigure
- pubsub/health
- spanner/health
- test/java/com/google/cloud/spring/autoconfigure
- pubsub/health
- spanner/health
4 files changed
+11
-37
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
84 | 77 | | |
85 | 78 | | |
86 | 79 | | |
| |||
98 | 91 | | |
99 | 92 | | |
100 | 93 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 94 | + | |
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 63 | + | |
70 | 64 | | |
71 | 65 | | |
72 | 66 | | |
| |||
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 77 | + | |
90 | 78 | | |
91 | 79 | | |
92 | 80 | | |
| |||
0 commit comments