Replies: 4 comments 5 replies
-
I choose (8) because it allows flexibility down the road. My second choice would be |
Beta Was this translation helpful? Give feedback.
-
I strongly choose (1), with some comments. Regarding options (2) and (5), even it is the case that there is no configuration file, semantically returning My second comment is around the use of the word "same" or perhaps the definition of the term "addressing information". An application container may host multiple applications within the same JVM, each with its own configuration. The application from which the method call is made should be a factor in determining which configuration object is returned even for the same input addressing information. Therefore I would consider the calling application to be an expressly implicit part of the addressing information. (The term "application" is more or less normative in the context of Jakarta EE by the way.) Lastly, regarding flexibility (without saying the "m********y" word) I think that such flexibility can definitely be implementation-defined without too much difficulty. In the future if we ever pursue that path, we can introduce a separate API and ensure that it is clear that this method always returns the initial or starting configuration. |
Beta Was this translation helpful? Give feedback.
-
I agree with @dmlloyd that we should avoid using |
Beta Was this translation helpful? Give feedback.
-
Option 1 or 8. |
Beta Was this translation helpful? Give feedback.
-
(On the call today, we talked about MVP scope. The second item is related to loading and is what I'm asking about here.)
Given the following loading pseudocode sketch:
…what must (or must not) be true of the return value semantics when
load(...some kind of addressing...)
is called twice or more with the same addressing information?(Ignore any exceptional behavior for the moment.)
Please choose from the following mutually exclusive options:
null
.null
to indicate the absence of a configuration object.null
to indicate a valid configuration object consisting of simply the valuenull
(i.e. not absence; just another value).c
s are returned, but neither can benull
.c
s are returned, and either can benull
to indicate absence.c
s are returned, and either can benull
to indicate a valid configuration object consisting of simply the valuenull
(i.e. not absence; just another value).This is a "scratch" discussion, i.e. not an official vote or poll or anything. Normally I'd use a mailing list for these kinds of questions but the mailing list seems to have fallen out of favor.
This discussion is loosely related to #109 but please keep discussions on target.
Beta Was this translation helpful? Give feedback.
All reactions