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

Parse Collection values #1

Open
johnwright opened this issue Nov 13, 2014 · 1 comment
Open

Parse Collection values #1

johnwright opened this issue Nov 13, 2014 · 1 comment

Comments

@johnwright
Copy link
Member

  • If the return type is Collection, pick a default implementation (e.g. ArrayList)
  • If the return type is a concrete descendant of Collection, instantiate it via its default constructor
  • If the return type is an abstract descendant of Collection, choose a default implementation (or just throw an exception?)
  • Nested collections or arrays within collections aren't allowed
@johnwright
Copy link
Member Author

Current array handling assumes that values are comma-separated in a single parameter.

It might be worth considering the style of collections used by Spring and Typesafe Config, i.e.

// my.property.0=foo
// my.property.1=bar

interface Config {
  List<String> myProperty();
}

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

No branches or pull requests

1 participant