org.springframework.stereotype |
Annotations denoting the roles of types or methods in the overall architecture
(at a conceptual, rather than implementation, level).
Intended for use by tools and aspects (making an ideal target for pointcuts).
|
Java Source File Name | Type | Comment |
Component.java | Annotation | Indicates that an annotated class is a "component".
Such classes are considered as candidates for auto-detection
when using annotation-based configuration and classpath scanning.
Other class-level annotations may be considered as identifying
a component as well, typically a special kind of component:
e.g. |
Controller.java | Annotation | Indicates that an annotated class is a "Controller" (e.g. |
Repository.java | Annotation | Indicates that an annotated class is a "Repository" (or "DAO").
A class thus annotated is eligible for Spring
org.springframework.dao.DataAccessException translation. |
Service.java | Annotation | Indicates that an annotated class is a "Service" (e.g. |