In my Spring project I use extensively collections from vavr library. Sometimes I need to inject collection of beans. As far as I know Spring can only inject collections from JDK, e.g. List
, Set
, Map
, etc. Is there any way to inject vavr collection? I would like to do something like this:
@Component
class NameResolver {
@Autowired
io.vavr.collection.List<NameMatcher> matchers; // how to make it work?
}