You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/src/main/asciidoc/composed-configuration.adoc
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,10 +237,7 @@ This information is particularly interesting for implementors.
237
237
238
238
1. The `Config` implementation detects whether the type of a retrieved configuration value is a composed configuration.
239
239
This is handled equally, whether the configuration is retrieved programmatically, or via dependency injection.
240
-
The configuration value type is considered a composed type if
241
-
- the type definition is annotated with the `@ComposedConfig` qualifier
242
-
- the dependency injection defines the `@ComposedConfig` qualifier
243
-
- the configuration value is access via the `ConfigAccessor` API and it's dedicated `composed()` method
240
+
The configuration value type is considered a composed type if the type definition is annotated with `@ComposedConfig`.
244
241
245
242
2. The retrieval of a composed value MUST be performed by a single config source at a time, in order of their defined priority.
246
243
Due to the potential hierarchical nature of composed configuration, the individual sources must define coherent configuration compositions.
@@ -372,5 +369,7 @@ server.sockets.1.port=443
372
369
----
373
370
374
371
375
-
// === Considerations (for EG members)
376
-
// - No prefix attribute added on `@ComposedConfig`, since it arguable doesn't provide much benefits. The injection point has to specify some property name anyway.
372
+
=== Decisions & Considerations (for EG members, to be removed)
373
+
- No prefix attribute added on `@ComposedConfig`, since it arguable doesn't provide much benefits. The injection point has to specify some property name anyway. Discussed on 2018-09-06.
374
+
- Starting with supporting to annotate `@ComposedConfig` on types only, i.e. no qualifier and no annotation on the injection point. Discussed on 2018-09-06.
375
+
- The programmatic `ConfigAccessor` API doesn't require a specific method (such as `composed()`), since the resolution currently requires the composed type to be annotated with `@ComposedConfig`.
0 commit comments