We'll leave this out from BV's {{Configuration}} for now and first experiment in the RI. Options include:
* {{ Set<ValueExtractor<?>> getDefaultValueExtractors() }} * {{ Map<(Type+TypeVariable), ValueExtractor<?>> getDefaultValueExtractorsByType() }} * {{ ValueExtractor<?> getDefaultValueExtractorFor(Type, TypeVariable) }}
I'd prefer the latter, but it's left to explore how to make it work for the array element extractors. Maybe just pass null for the type variable.
{{ValueExtractor<?> getDefaultValueExtractorFor(Type, int)}} probably is easier to use than putting the burden onto users to obtain the type variable: {{getDefaultValueExtractorFor(Map.class, 0)}} vs. {{getDefaultValueExtractorFor(Map.class, Map.class.getTypeParameters()[0])}}. |
|