@Inject vs. @Resource vs. @Autowired — Java vs. Spring

@Autowired (Spring) & @Inject (Java)
  1. Matches by type
  2. Restricts by qualifiers
  3. Matches by name
@Resource (Java)
  1. Matches by name
  2. Matches by type
  3. Restricted by qualifiers, ignored if match is found by name

Comments

Popular posts from this blog

NetBeans 6.1: Working with Google´s Android SDK, Groovy and Grails

Tuning ext4 for performance with emphasis on SSD usage