-
Notifications
You must be signed in to change notification settings - Fork 72
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
Support to Eclipse Config #203
Comments
That one’s interesting. I like MicroProfile config, but I’ve only seen and used it so far in basic cases for primitives and Strings. If we can implement that in a way that makes idiomatic sense and doesn’t seem shoehorned in, that’d be great by @jesse-gallagher |
As this is an implementation project I guess it is a safe approach to start e.g. using the MicroProfile API and annotations and if it evolved into a Jakarta EE spec use that. Do you envision any similar needs for the NoSQL spec? As it could be problematic to use MP config there, but in the JNoSQL project it seems fine. Also see #115 |
I'm glad to start the discussion; my first question is: |
To put more context, in the configuration we have five mandatory fields:
Unlike either JSON or YAML properties file does not support array settings, therefore, the settings in the file must be enumerated. @Inject
@ConfigProperty(name = "suffix")
private ColumnFamilyManager manager; The configuration will be:
|
I don't think a Jakarta EE specification (API) could use a non-standard project like MicroProfile or Spring in its code. Ask e.g. @waynebeaton to confirm, because he's both a mentor to Jakarta NoSQL and MicroProfile, but from my understanding the spec cannot use |
Hey @keilw that why I've created this issue in Eclipse JNoSQL, the reference implementation. I believe they are going to have this kind of discussion in the future. |
Hey Guys, this week is happening Oracle Code One, and we have opportunity to talk about this with several people. Some information:
|
Eclipse MicroProfile ProposalEach configuration has four information:
In JSON it will be like: {
"description":"that is the description",
"name":"name",
"provider":"class",
"settings":{
"key":"value"
}
} The proposal is to convert it to properties on Eclipse Config. The plan is to use the value to @Inject
@ConfigProperty(name = "database")
private ColumnFamilyManager manager; The configuration should be on that structure:
@Emily-Jiang @keilw what do you think about that structure? |
I created a PR to remove the ConfigurationUnit from the Spec and then to use the Eclipse MicroProfile Configuration in the Reference implementation: |
Guess that's all we can do for now, if someone proposes a Jakarta Config spec some day we might change it. |
This proposal has the goal to work to support Eclipse JNoSQL:
The text was updated successfully, but these errors were encountered: