-
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
Improve autoclosable doc #42
Comments
A typical ConfigSource example would be a ConfigSource that uses a DB to store its props. However we have edge cases when using the programmatic API as such a ConfigSource can belong to multiple Configs. I wonder if we shouldn't have a symmetrical lifecycle The same argument can also be made for Converter. I propose we add an empty default |
I wonder it may be implementation issue. |
The spec allows (or at least does not forbid) to share ConfigSources between Config using the programmatic ConfigBuilder. The actual sentence in the spec is not correct:
There is no
I'd be fine with requiring Config implementation to manage this case but it should be explicitly stated in the spec something like:
|
The more we talk about this, the more I think the close is implementation detail. Maybe we just mention in the spec that the implementors need to ensure when a config object is released, the underline config source or converters should be cleared up. |
@Emily-Jiang Do you think we should still add any additional clarification or hint to the spec? |
I think it will be good to add additional clarification. |
add an example
add more explanation
The text was updated successfully, but these errors were encountered: