You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by lu...@apache.org on 2014/05/17 18:49:56 UTC

svn commit: r1595511 - /directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext

Author: lucastheisen
Date: Sat May 17 16:49:56 2014
New Revision: 1595511

URL: http://svn.apache.org/r1595511
Log:
testing

Modified:
    directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext

Modified: directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/api/user-guide/2.10-ldap-connection-template.mdtext?rev=1595511&r1=1595510&r2=1595511&view=diff
==============================================================================
--- 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 classes:
 
     :::Java
-    // 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>() {
             @Override