Skip to content
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

Archaius should provide some simple syntax to describe the parametrized collection types that are decodable by default. #654

Closed
rgallardo-netflix opened this issue Jun 9, 2023 · 0 comments · Fixed by #687
Assignees

Comments

@rgallardo-netflix
Copy link
Contributor

AbstractConfig#getValueWithDefault(Class, String, T) is NOT able to decode collection types, but AbstractConfig#(Type, String, T) can, if a ParametrizedType is passed. We should provide a shorthand method to create such ParametrizedTypes. Otherwise, users are forced to hunt themselves for a way to create them.

Apache Commons Lang 3's TypeUtils has sample code that we could copy and specialize for this restricted use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant