directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
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

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



Mime
View raw message