Package org.springframework.ldap.core
Class AttributesMapperCallbackHandler<T>
java.lang.Object
org.springframework.ldap.core.CollectingNameClassPairCallbackHandler<T>
org.springframework.ldap.core.AttributesMapperCallbackHandler<T>
- All Implemented Interfaces:
NameClassPairCallbackHandler
A CollectingNameClassPairCallbackHandler to wrap an
AttributesMapper
.
That is, the found object is extracted from the Attributes
of each
SearchResult
, and then passed to the specified
AttributesMapper
for translation.- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectFromNameClassPair
(NameClassPair nameClassPair) Cast the NameClassPair to a SearchResult and pass its attributes to theAttributesMapper
.Methods inherited from class org.springframework.ldap.core.CollectingNameClassPairCallbackHandler
getList, handleNameClassPair
-
Constructor Details
-
AttributesMapperCallbackHandler
Constructs a new instance around the specifiedAttributesMapper
.- Parameters:
mapper
- the target mapper.
-
-
Method Details
-
getObjectFromNameClassPair
Cast the NameClassPair to a SearchResult and pass its attributes to theAttributesMapper
.- Specified by:
getObjectFromNameClassPair
in classCollectingNameClassPairCallbackHandler<T>
- Parameters:
nameClassPair
- aSearchResult
instance.- Returns:
- the Object returned from the mapper.
-