File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
spring-context/src/main/java/org/springframework/stereotype Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .core .annotation .AliasFor ;
26
+
25
27
/**
26
28
* Indicates that an annotated class is a "Controller" (e.g. a web controller).
27
29
*
48
50
* to be turned into a Spring bean in case of an autodetected component.
49
51
* @return the suggested component name, if any
50
52
*/
53
+ @ AliasFor (annotation = Component .class )
51
54
String value () default "" ;
52
55
53
56
}
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .core .annotation .AliasFor ;
26
+
25
27
/**
26
28
* Indicates that an annotated class is a "Repository", originally defined by
27
29
* Domain-Driven Design (Evans, 2003) as "a mechanism for encapsulating storage,
64
66
* to be turned into a Spring bean in case of an autodetected component.
65
67
* @return the suggested component name, if any
66
68
*/
69
+ @ AliasFor (annotation = Component .class )
67
70
String value () default "" ;
68
71
69
72
}
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .core .annotation .AliasFor ;
26
+
25
27
/**
26
28
* Indicates that an annotated class is a "Service", originally defined by Domain-Driven
27
29
* Design (Evans, 2003) as "an operation offered as an interface that stands alone in the
50
52
* to be turned into a Spring bean in case of an autodetected component.
51
53
* @return the suggested component name, if any
52
54
*/
55
+ @ AliasFor (annotation = Component .class )
53
56
String value () default "" ;
54
57
55
58
}
You can’t perform that action at this time.
0 commit comments