We released spring-componentmap (0.1.0) – A JVM library for Map(s) injection with Spring

Hi All!

We have been using this util for a long time with great results and decided it’s time to release it as open source.

The library does one simple thing. It allows better injection of maps of beans with Spring. With the library:

  • The map key type could be any type (string, enum, integer…) and with any value. Unlike Spring implementation which only allows to inject maps with string keys and their value is the bean name.
  • The map value type can be either the bean type or list of the bean type. Unlike Spring implementation which does not support lists.

Any feedback helps us improve so it’s greatly appreciated 🙂 It’s a pleasure to be a part of the open source community and hopefully help others.

Spring-ComponentMap repository:
https://github.com/krud-dev/spring-componentmap
Spring-ComponentMap documentation:
https://componentmap.krud.dev/

submitted by /u/baddict002
[link] [comments]