File tree Expand file tree Collapse file tree 7 files changed +19
-24
lines changed
spring-context/src/main/java/org/springframework
spring-core/src/test/java/org/springframework/stereotype
spring-web/src/main/java/org/springframework/web/bind/annotation Expand file tree Collapse file tree 7 files changed +19
-24
lines changed Original file line number Diff line number Diff line change 24
24
25
25
import org .springframework .beans .factory .annotation .Autowired ;
26
26
import org .springframework .beans .factory .annotation .Value ;
27
+ import org .springframework .core .annotation .AliasFor ;
27
28
import org .springframework .stereotype .Component ;
28
29
29
30
/**
412
413
* component scanning or supplied directly to a {@link AnnotationConfigApplicationContext}.
413
414
* If the Configuration class is registered as a traditional XML bean definition,
414
415
* the name/id of the bean element will take precedence.
415
- * @return the specified bean name, if any
416
+ * @return the suggested component name, if any (or empty String otherwise)
416
417
* @see org.springframework.beans.factory.support.DefaultBeanNameGenerator
417
418
*/
419
+ @ AliasFor (annotation = Component .class )
418
420
String value () default "" ;
419
421
420
422
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2007 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
48
48
/**
49
49
* The value may indicate a suggestion for a logical component name,
50
50
* to be turned into a Spring bean in case of an autodetected component.
51
- * @return the suggested component name, if any
51
+ * @return the suggested component name, if any (or empty String otherwise)
52
52
*/
53
53
String value () default "" ;
54
54
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2007 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
48
48
/**
49
49
* The value may indicate a suggestion for a logical component name,
50
50
* to be turned into a Spring bean in case of an autodetected component.
51
- * @return the suggested component name, if any
51
+ * @return the suggested component name, if any (or empty String otherwise)
52
52
*/
53
53
@ AliasFor (annotation = Component .class )
54
54
String value () default "" ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
64
64
/**
65
65
* The value may indicate a suggestion for a logical component name,
66
66
* to be turned into a Spring bean in case of an autodetected component.
67
- * @return the suggested component name, if any
67
+ * @return the suggested component name, if any (or empty String otherwise)
68
68
*/
69
69
@ AliasFor (annotation = Component .class )
70
70
String value () default "" ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2011 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
50
50
/**
51
51
* The value may indicate a suggestion for a logical component name,
52
52
* to be turned into a Spring bean in case of an autodetected component.
53
- * @return the suggested component name, if any
53
+ * @return the suggested component name, if any (or empty String otherwise)
54
54
*/
55
55
@ AliasFor (annotation = Component .class )
56
56
String value () default "" ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
27
27
* Such classes are considered as candidates for auto-detection
28
28
* when using annotation-based configuration and classpath scanning.
29
29
*
30
- * <p>Other class-level annotations may be considered as identifying
31
- * a component as well, typically a special kind of component:
32
- * e.g. the {@link Repository @Repository} annotation or AspectJ's
33
- * {@link org.aspectj.lang.annotation.Aspect @Aspect} annotation.
34
- *
35
30
* @author Mark Fisher
36
31
* @since 2.5
37
- * @see Repository
38
- * @see Service
39
- * @see Controller
40
- * @see org.springframework.context.annotation.ClassPathBeanDefinitionScanner
41
32
*/
42
33
@ Target (ElementType .TYPE )
43
34
@ Retention (RetentionPolicy .RUNTIME )
48
39
/**
49
40
* The value may indicate a suggestion for a logical component name,
50
41
* to be turned into a Spring bean in case of an autodetected component.
51
- * @return the suggested component name, if any
42
+ * @return the suggested component name, if any (or empty String otherwise)
52
43
*/
53
- public abstract String value () default "" ;
44
+ String value () default "" ;
54
45
55
- }
46
+ }
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .core .annotation .AliasFor ;
25
26
import org .springframework .stereotype .Controller ;
26
27
27
28
/**
51
52
/**
52
53
* The value may indicate a suggestion for a logical component name,
53
54
* to be turned into a Spring bean in case of an autodetected component.
54
- * @return the suggested component name, if any
55
+ * @return the suggested component name, if any (or empty String otherwise)
55
56
* @since 4.0.1
56
57
*/
58
+ @ AliasFor (annotation = Controller .class )
57
59
String value () default "" ;
58
60
59
61
}
You can’t perform that action at this time.
0 commit comments