|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface Component
Indicates that an annotated class is a "component". Such classes are considered as candidates for autodetected Spring beans 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. the Repository
annotation or AspectJ's
Aspect
annotation.
ClassPathScanningCandidateComponentProvider
Optional Element Summary | |
---|---|
String |
value
The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component. |
public abstract String value
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |