diff --git a/spring-framework-reference/src/beans.xml b/spring-framework-reference/src/beans.xml index ec3d3fa9c43..7dcc05dce1e 100644 --- a/spring-framework-reference/src/beans.xml +++ b/spring-framework-reference/src/beans.xml @@ -6048,10 +6048,9 @@ public @interface MovieQualifier { project have been added to the core Spring Framework. This allows you to define beans using Java rather than using the traditional XML files. Take a look at the - @Configuration, - @Bean, - @Value annotations for how to use these - new features. + @Configuration, @Bean, + @Import and @DependsOn + annotations for how to use these new features.
@@ -6526,15 +6525,13 @@ public Service userService() {
Lookup method injection - As noted in the core documentation, As noted earlier, lookup method injection is an advanced feature that should be comparatively rarely used. It is useful in cases where a singleton-scoped bean has a dependency on a prototype-scoped bean. Using Java for this type of configuration provides a natural means for implementing this - pattern. Note that the example below is adapted from the - example classes and configuration in the core documentation linked - above. - JavaConfig can easily create a subclass of - CommandManager where the abstract + Using Java-configurtion support we can easily create a + subclass of CommandManager where the abstract createCommand() is overridden in such a way that it 'looks up' a brand new (prototype) command object: