@@ -847,12 +847,12 @@ This approach shows that the factory bean itself can be managed and configured t
847
847
dependency injection (DI). See <<beans-factory-properties-detailed,Dependencies and
848
848
Configuration in Detail>>.
849
849
850
- NOTE: In Spring documentation, "` factory bean` " refers to a bean that is configured in
851
- the Spring container and that creates objects through an
850
+ NOTE: In Spring documentation, "factory bean" refers to a bean that is configured in the
851
+ Spring container and that creates objects through an
852
852
<<beans-factory-class-instance-factory-method,instance>> or
853
853
<<beans-factory-class-static-factory-method,static>> factory method. By contrast,
854
854
`FactoryBean` (notice the capitalization) refers to a Spring-specific
855
- <<beans-factory-extension-factorybean, `FactoryBean` >> implementation class.
855
+ <<beans-factory-extension-factorybean, `FactoryBean`>> implementation class.
856
856
857
857
858
858
[[beans-factory-type-determination]]
@@ -3350,8 +3350,9 @@ of the scope. You can also do the `Scope` registration declaratively, by using t
3350
3350
</beans>
3351
3351
----
3352
3352
3353
- NOTE: When you place `<aop:scoped-proxy/>` in a `FactoryBean` implementation, it is the factory
3354
- bean itself that is scoped, not the object returned from `getObject()`.
3353
+ NOTE: When you place `<aop:scoped-proxy/>` within a `<bean>` declaration for a
3354
+ `FactoryBean` implementation, it is the factory bean itself that is scoped, not the object
3355
+ returned from `getObject()`.
3355
3356
3356
3357
3357
3358
@@ -4545,16 +4546,16 @@ The `FactoryBean<T>` interface provides three methods:
4545
4546
instance can possibly be shared, depending on whether this factory returns singletons
4546
4547
or prototypes.
4547
4548
* `boolean isSingleton()`: Returns `true` if this `FactoryBean` returns singletons or
4548
- `false` otherwise.
4549
+ `false` otherwise. The default implementation of this method returns `true`.
4549
4550
* `Class<?> getObjectType()`: Returns the object type returned by the `getObject()` method
4550
4551
or `null` if the type is not known in advance.
4551
4552
4552
- The `FactoryBean` concept and interface is used in a number of places within the Spring
4553
+ The `FactoryBean` concept and interface are used in a number of places within the Spring
4553
4554
Framework. More than 50 implementations of the `FactoryBean` interface ship with Spring
4554
4555
itself.
4555
4556
4556
4557
When you need to ask a container for an actual `FactoryBean` instance itself instead of
4557
- the bean it produces, preface the bean's `id` with the ampersand symbol (`&`) when
4558
+ the bean it produces, prefix the bean's `id` with the ampersand symbol (`&`) when
4558
4559
calling the `getBean()` method of the `ApplicationContext`. So, for a given `FactoryBean`
4559
4560
with an `id` of `myBean`, invoking `getBean("myBean")` on the container returns the
4560
4561
product of the `FactoryBean`, whereas invoking `getBean("&myBean")` returns the
0 commit comments