Replies: 1 comment 6 replies
-
Since CDI in its most basic form will inject by type, I think that a single type token is the appropriate answer (at least for MVP if not for 1.0).
Yes, this follows well-established Java idioms. Furthermore, if the type token is an interface as we have been discussing, then the response must be a subtype.
No, at least not at present. This creates a considerable amount of complexity which we should not take on at the MVP stage.
Not for MVP, in my opinion.
These use cases are interesting, but let's put them on the back burner for MVP. |
Beta Was this translation helpful? Give feedback.
-
(See also #119.)
Given the following loading pseudocode sketch:
…what sorts of things should go in the
...some kind of addressing...
area above?For this discussion I don't care how they are represented yet (one object, many, names of classes, etc.—don't care about any of that yet).
I also don't care whether they are explicitly supplied by the user, or implicitly supplied by something else. I am just interested in the sorts of things that together make up the loading request.
Here are some things I thought of immediately:
MyConfigObject.class
, would aMyConfigObject
-subtyped response payload be appropriate?)MyConfigObject<Map<String, List<Integer>>>
, is that sensible? If so, what are the matching semantics?)type=com.foobar.MyConfigObject
; see below, but it "feels" more primal than that.)test
environment and so either implicitly or explicitly the loading request should say: "Give me aMyConfigObject.class
-typed object appropriate forenv=test
";env=test
here would be an example of a qualifier. Again I don't (yet) care if it is supplied explicitly or implicitly.)MyConfigObject.class
-typed object suitable for the namefoo
".name=foo
is just another qualifier example.)Any others?
Beta Was this translation helpful? Give feedback.
All reactions