This is a question to understand spring internals. There are a couple of workarounds suggested for self injection of a bean in spring because @Autowired doesn't work. Here are few threads. I would like to know the reason why and how does self injection work technically with @Resource annotation?
@Service(value = "someService")
public class UserService implements Service{
@Resource(name = "someService")
private Service self;
}
Any links to the spring source code would be appreciated. Thanks.