Change bean registration to use initialize

This commit changes the reference documentation to conform
with the updated API defined in
8b8a6766de
This commit is contained in:
Jussi Hallila
2017-09-08 09:15:42 +01:00
committed by Sebastien Deleuze
parent 5c7bd0a9ea
commit 1440026fb4

View File

@@ -227,7 +227,7 @@ This `beans()` function can then be used to register beans on the application co
[source,kotlin]
----
val context = GenericApplicationContext().apply {
beans().invoke(this)
beans().initialize(this)
refresh()
}
----