Spring LDAP Framework

org.springframework.ldap.core.simple
Interface ParameterizedContextMapper<T>

Type Parameters:
T -
All Superinterfaces:
ContextMapper
All Known Subinterfaces:
ParameterizedContextMapperWithControls<T>
All Known Implementing Classes:
AbstractParameterizedContextMapper

public interface ParameterizedContextMapper<T>
extends ContextMapper

Extension of the ContextMapper interface. Uses Java 5 covariant return types to override the return type of the mapFromContext(Object) method to be the type parameter T.


Method Summary
 T mapFromContext(Object ctx)
          Map a single LDAP Context to an object.
 

Method Detail

mapFromContext

T mapFromContext(Object ctx)
Map a single LDAP Context to an object. The supplied Object ctx is the object from a single SearchResult, Binding, or a lookup operation.

Specified by:
mapFromContext in interface ContextMapper
Parameters:
ctx - the context to map to an object.
Returns:
an object built from the data in the context.

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.