org.ldaptive.beans.spring
Class SpringLdapEntryMapper

java.lang.Object
  extended by org.ldaptive.beans.AbstractLdapEntryMapper<Object>
      extended by org.ldaptive.beans.spring.SpringLdapEntryMapper
All Implemented Interfaces:
LdapEntryMapper<Object>

public class SpringLdapEntryMapper
extends AbstractLdapEntryMapper<Object>

Uses a SpringClassDescriptor for ldap entry mapping.

Version:
$Revision: 3144 $ $Date: 2016-03-18 09:44:10 -0400 (Fri, 18 Mar 2016) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.beans.AbstractLdapEntryMapper
logger
 
Constructor Summary
SpringLdapEntryMapper()
           
 
Method Summary
protected  void addDefaultConverters(org.springframework.core.convert.support.GenericConversionService service)
          Adds default converters to the supplied conversion service.
protected  org.springframework.expression.EvaluationContext createEvaluationContext(Object object)
          Creates an evaluation context to use in the spring class descriptor.
protected  ClassDescriptor getClassDescriptor(Object object)
          Returns the class descriptor.
 void setConverters(org.springframework.core.convert.converter.Converter<?,?>... c)
          Sets additional converters to add to the spring conversion service.
 
Methods inherited from class org.ldaptive.beans.AbstractLdapEntryMapper
map, map, map, mapDn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringLdapEntryMapper

public SpringLdapEntryMapper()
Method Detail

setConverters

public void setConverters(org.springframework.core.convert.converter.Converter<?,?>... c)
Sets additional converters to add to the spring conversion service.

Parameters:
c - additional converters

getClassDescriptor

protected ClassDescriptor getClassDescriptor(Object object)
Returns the class descriptor.

Specified by:
getClassDescriptor in class AbstractLdapEntryMapper<Object>
Parameters:
object - to return the class descriptor for
Returns:
class descriptor

createEvaluationContext

protected org.springframework.expression.EvaluationContext createEvaluationContext(Object object)
Creates an evaluation context to use in the spring class descriptor. Adds the default converters from the default conversion service.

Parameters:
object - to supply to the evaluation context
Returns:
evalutation context

addDefaultConverters

protected void addDefaultConverters(org.springframework.core.convert.support.GenericConversionService service)
Adds default converters to the supplied conversion service.

Parameters:
service - to add default converters to


Copyright © 2003-2016 Virginia Tech. All Rights Reserved.