diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index 145d7a122288dd8f163d5c860c7934b4c423bf63..3885a714f6b3e6e4563d18516b1365f2f44087a3 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -4539,14 +4539,14 @@ Java as opposed to a (potentially) verbose amount of XML, you can create your ow `FactoryBean`, write the complex initialization inside that class, and then plug your custom `FactoryBean` into the container. -The `FactoryBean` interface provides three methods: +The `FactoryBean` interface provides three methods: -* `Object getObject()`: Returns an instance of the object this factory creates. The +* `T getObject()`: Returns an instance of the object this factory creates. The instance can possibly be shared, depending on whether this factory returns singletons or prototypes. * `boolean isSingleton()`: Returns `true` if this `FactoryBean` returns singletons or `false` otherwise. -* `Class getObjectType()`: Returns the object type returned by the `getObject()` method +* `Class getObjectType()`: Returns the object type returned by the `getObject()` method or `null` if the type is not known in advance. The `FactoryBean` concept and interface is used in a number of places within the Spring