Skip to content

Commit

Permalink
Fix Kotlin example for dependency injection with static factory method
Browse files Browse the repository at this point in the history
Closes gh-28589
  • Loading branch information
sbrannen committed Jun 9, 2022
1 parent 290cc73 commit babff8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/docs/asciidoc/core/core-beans.adoc
Expand Up @@ -1427,6 +1427,7 @@ The following example shows the corresponding `ExampleBean` class:
// a static factory method; the arguments to this method can be
// considered the dependencies of the bean that is returned,
// regardless of how those arguments are actually used.
@JvmStatic
fun createInstance(anotherBean: AnotherBean, yetAnotherBean: YetAnotherBean, i: Int): ExampleBean {
val eb = ExampleBean (...)
// some other operations...
Expand Down

0 comments on commit babff8e

Please sign in to comment.