I have a class which wraps a connection pool, the class gets its connection details from a spring configuration as shown below:
@Autowired @Qualifier("jedisConnector") JedisConnector beanA; @Autowired @Qualifier("jedisConnectorPOD") JedisConnector beanB;