Autowiring of anonymous types