Skip to content

Commit 60f763a

Browse files
committed
Polish Kotlin reference documentation
Issue: SPR-15659
1 parent 8b8a676 commit 60f763a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/docs/asciidoc/kotlin.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ See https://github.com/mixitconf/mixit/tree/bad6b92bce6193f9b3f696af9d416c276501
181181
for a concrete example.
182182

183183

184-
== Functional bean declaration DSL
184+
== Functional bean definition DSL
185185

186186
Spring Framework 5 introduces a new way to register beans using lambda as an alternative
187187
to XML or JavaConfig with `@Configuration` and `@Bean`. In a nutshell, it makes it possible
@@ -210,9 +210,9 @@ val context = GenericApplicationContext().apply {
210210
----
211211

212212
In order to allow a more declarative approach and cleaner syntax, Spring Framework 5 introduces
213-
a new {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean declaration DSL]
214-
It conceptually declares a `Consumer<GenericApplicationContext>` via a clean declarative API
215-
which allows you to deal with profiles and `Environment` for customizing how your beans are registered.
213+
a new {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.context.support/-bean-definition-dsl/[Kotlin bean definition DSL]
214+
It declares an `ApplicationContextInitializer` via a clean declarative API which allows
215+
you to deal with profiles and `Environment` for customizing how your beans are registered.
216216

217217
[source,kotlin]
218218
----
@@ -273,7 +273,7 @@ for a concrete example.
273273

274274
[NOTE]
275275
====
276-
Spring Boot is based on Java Config, but should allow using user-defined functional bean declarations,
276+
Spring Boot is based on Java Config, but should allow using user-defined functional bean definitions,
277277
see https://jira.spring.io/browse/SPR-13779[SPR-13779] and https://github.com/spring-projects/spring-boot/issues/8115[spring-boot/#8115]
278278
for more details and up to date informations.
279279
====
@@ -497,7 +497,7 @@ class IntegrationTests {
497497

498498
* https://github.com/sdeleuze/spring-boot-kotlin-demo[spring-boot-kotlin-demo]: regular Spring Boot + Spring Data JPA project
499499
* https://github.com/mixitconf/mixit[mixit]: Spring Boot 2 + WebFlux + Reactive Spring Data MongoDB
500-
* https://github.com/sdeleuze/spring-kotlin-functional[spring-kotlin-functional]: standalone WebFlux + functional bean declaration DSL
500+
* https://github.com/sdeleuze/spring-kotlin-functional[spring-kotlin-functional]: standalone WebFlux + functional bean definition DSL
501501

502502
==== Tutorials
503503

0 commit comments

Comments
 (0)