I'm puzzled with such kind of dependency injection shown as an example in spring data redis: https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis:serializer
// inject the template as ListOperations
@Resource(name="redisTemplate")
private ListOperations<String, String> listOps;
Taking into consideration that redisTemplate is a bean of type RedisTemplate, how does spring manage to retrieve the listOps from the redisTemplate bean ?
This is working and I'm mainly interested to find a piece of documentation explaining this behaviour or the piece of code handling that.
Thank for your help.