Skip to content

Commit cf9f9ab

Browse files
committed
Polish Converter Documentation
Added details about Spring Boot support. Issue gh-633
1 parent c98c020 commit cf9f9ab

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

modules/ROOT/pages/odm.adoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ The Spring LDAP project offers a similar ability with respect to LDAP directorie
1919

2020
`LdapTemplate` constructs a default `ObjectDirectoryMapper` which typically renders additional configuration unnecessary.
2121

22-
However, you can also make `ObjectDirectoryMapper` available as a `@Bean` by importing `ObjectDirectoryMapperConfiguration` like so:
22+
=== Converters with Boot
23+
24+
`ObjectDirectoryMapper` supports `ConversionService` which allows you to specify customer ``Converter``s for mapping between Java and LDAP.
25+
26+
When you are using Spring Boot, you can simply publish a `Converter` as you would normally and the `ObjectDirectoryMapper` bean that Boot provides will pick them up.
27+
28+
=== Converters without Boot
29+
30+
You can also make `ObjectDirectoryMapper` available as a `@Bean` by importing `ObjectDirectoryMapperConfiguration` like so:
2331

2432
[source,java]
2533
----
@@ -42,9 +50,7 @@ LdapTemplate ldapTemplate(ContextSource contextSource, ObjectDirectoryMapper odm
4250
}
4351
----
4452

45-
Using this import provides the benefit that it will automatically configure `ObjectDirectoryMapper` with the `ConversionService` in the `ApplicationContext`.
46-
47-
This means that Spring LDAP will use your configured `Converter` instances.
53+
Doing so will make so that Spring LDAP will use your configured `Converter` instances.
4854

4955
[[annotations]]
5056
== Annotations

0 commit comments

Comments
 (0)