link:
[1] http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-stereotype-annotations
[2] http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-java-instantiating-container-scan
[3] http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-named

summary:
– @Repository, @Service, and @Controller are specializations of @Component for more specific use cases [1]
– Remember that @Configuration classes are meta-annotated with @Component, so they are candidates for component-scanning [2]
– @Named: a standard equivalent to the @Component annotation [3]

Advertisements