One way could be by defining a name for the @Bean
and using it on @Qualifier
as follows:
@Bean(name="barUserList")
@Autowired
ArrayList<String> barUserList(Properties properties) {
ArrayList<String> barUsernames = new ArrayList<String>();
Collections.addAll(barUsernames, properties.getProperty("site.bar.watchedUsernames", "").split(","));
return barUsernames;
}
and within the use you could have something like:
// ...
@Autowired
@Qualifier("barUserList")
private List<String> userList;
// ...