Skip to content

Commit 80d46ba

Browse files
authored
Update FactoryBean generic description in ref docs
Closes gh-26758
1 parent db9a10b commit 80d46ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docs/asciidoc/core/core-beans.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4539,14 +4539,14 @@ Java as opposed to a (potentially) verbose amount of XML, you can create your ow
45394539
`FactoryBean`, write the complex initialization inside that class, and then plug your
45404540
custom `FactoryBean` into the container.
45414541

4542-
The `FactoryBean` interface provides three methods:
4542+
The `FactoryBean<T>` interface provides three methods:
45434543

4544-
* `Object getObject()`: Returns an instance of the object this factory creates. The
4544+
* `T getObject()`: Returns an instance of the object this factory creates. The
45454545
instance can possibly be shared, depending on whether this factory returns singletons
45464546
or prototypes.
45474547
* `boolean isSingleton()`: Returns `true` if this `FactoryBean` returns singletons or
45484548
`false` otherwise.
4549-
* `Class getObjectType()`: Returns the object type returned by the `getObject()` method
4549+
* `Class<?> getObjectType()`: Returns the object type returned by the `getObject()` method
45504550
or `null` if the type is not known in advance.
45514551

45524552
The `FactoryBean` concept and interface is used in a number of places within the Spring

0 commit comments

Comments
 (0)