diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java index 96f1b778f0e..ad45ce9ed89 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/Bean.java @@ -31,22 +31,23 @@ import org.springframework.beans.factory.annotation.Autowire; * as follows: * *
The Bean annotation does not provide attributes for scope, primary or lazy. Rather, - * it should be used in conjunction with {@link Scope}, {@link Primary} and {@link Lazy} - * annotations to acheive the same semantics. + * it should be used in conjunction with {@link Scope @Scope}, + * {@link Primary @Primary}, and {@link Lazy @Lazy} annotations to achieve the + * same semantics. * *
While a {@link #name()} attribute is available, the default strategy for determining * the name of a bean is to use the name of the Bean method. This is convenient and * intuitive, but if explicit naming is desired, the {@link #name()} attribute may be used. * Also note that {@link #name()} accepts an array of strings. This is in order to allow - * for specifying multiple names (aka aliases) for a single bean. + * for specifying multiple names (i.e., aliases) for a single bean. * *
Note: Only invoked on beans whose lifecycle is under the full control of the - * factory which is always the case for singletons, but not guaranteed - * for any other scope. - * see {@link org.springframework.context.ConfigurableApplicationContext#close()} + * factory, which is always the case for singletons but not guaranteed + * for any other scope. + * @see {@link org.springframework.context.ConfigurableApplicationContext#close()} */ String destroyMethod() default "";