@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Indexed public @interface Component
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.
Repository
,
Service
,
Controller
,
ClassPathBeanDefinitionScanner
Modifier and Type | Optional Element and Description |
---|---|
java.lang.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.
|