-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Think about how and if to support a ProjectStage #26
Comments
I would vote for other features, such as the change notification instead. Not that I isn't useful, just about priorities. If I think about real-world scenarios, reloads would IMO help more, e.g. |
I never used a ProjectStage (https://deltaspike.apache.org/documentation/projectstage.html) but what I find quite useful are the profiles in Spring. From my point of view this is more or less the same (don't hit if I'm wrong). I'm currently use this feature often to have different properties for a spring service in Docker / in IDE. So a +1 from me. |
Yes, AFAIK this is more or less the same than Spring profiles. This is my point, for enterprise environments at least, that profiles are not a best practice (anymore). We don't want to ship applications that include all configuration permutations for all envs and then decide at runtime, within the application / runtime. Instead, we want to define the (few) parts that are different from the outside and inject the proper configuration then, i. e. via Docker environment variables, volumes, Kubernetes config maps, etc. That means the application includes and "sees" only the final set of configuration values, which are then easily usable by our JSR. This matches the idea of 12-factor applications of "store config in the environment", see https://12factor.net/config This is why, at least for modern enterprise environments, I discourage the use of profiles, thus I wouldn't support it (initially). |
I agree with @sdaschner , a ProjectStage promote internally configuration. |
@sdaschner This do not help in non server environments like Java based command line tools or desktop clients ;) |
Discussed today in the weekly: |
About that, i think spring uses a very nice and clear way to define a Stage(profile) property file that is |
Let's discuss naming: I would prefer I really like |
In general I think that |
@jeyvison and how to tweak those settings via env or -D? This way is not really well thought through I fear.
|
As deltaspike, have we a list of stage ? or name is completely free ? I prefer multi-file for stage or profile. |
But file javaconfig-${stage or profile}.properties overload properties of file javaconfig.properties wdyt ? |
@struberg
Totally agree with this approach. This way we can specify even more what are general and enviroment-specific properties |
eclipse#26 - remove the ConfigConverterHelper
just a bump that the ConfigJSR now has some notion of project stage as mentioned in
@struberg I'm not sure whether that was intentional to have it with ConfigAccessor API or if that should have been added by a subsequent PR as there are still some disagreement with that feature as discussed in this thread. |
let's discuss more. |
Should we introduce a ProjectStage in JSR-382?
The text was updated successfully, but these errors were encountered: