directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1595511 - /directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext
Date Sat, 17 May 2014 16:49:56 GMT
Author: lucastheisen
Date: Sat May 17 16:49:56 2014
New Revision: 1595511



Modified: directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext
--- directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext (original)
+++ directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext Sat May
17 16:49:56 2014
@@ -51,7 +51,7 @@ The connection template manages connecti
     DefaultLdapConnectionFactory factory = new DefaultLdapConnectionFactory( config );
     factory.setTimeOut( connectionTimeout );
-    // OPTIONAL, values below are defaults
+    // optional, values below are defaults
     GenericObjectPool.Config poolConfig = new GenericObjectPool.Config();
     poolConfig.lifo = true;
     poolConfig.maxActive = 8;
@@ -167,7 +167,7 @@ Handling Search Result Iteration
 Searching usually contains a lot of boiler plate code for build requests and iterating through
responses.  This template does the work for you. It iterates over the entire result set, feeds
each entry through an EntryMapper, and collects the results into the list returned to the
caller.  All you have to do is provide the EntryMapper for mapping a single entry to a domain
object.  EntryMapper itself is a very simple interface with one method.  As you saw before
in the lookup documentation, they are typically defined as static members of your service
-    // Typically mappers are reused, so define a static member
+    // typically mappers are reused, so define a static member
     private static final EntryMapper muppetEntryMapper =
         new EntryMapper<Muppet>() {

View raw message