Interface AttributesMapper

public interface AttributesMapper

An interface used by LdapTemplate for mapping LDAP Attributes to beans. Implementions of this interface perform the actual work of extracting results, but need not worry about exception handling. NamingExceptions will be caught and handled correctly by the LdapTemplate class.

Typically used in LdapTemplate's search methods. AttributeMapper objects are typically stateless and thus reusable; they are ideal for implementing attribute-mapping logic in one place.

Alternatively, consider using a ContextMapper in stead.

Mattias Arthursson
See Also:, String, AttributesMapper), ContextMapper

Method Summary
 java.lang.Object mapFromAttributes( attributes)
          Map Attributes to an object.

Method Detail


java.lang.Object mapFromAttributes( attributes)
                                   throws javax.naming.NamingException
Map Attributes to an object. The supplied attributes are the attributes from a single SearchResult.

attributes - attributes from a SearchResult.
an object built from the attributes.
javax.naming.NamingException - if any error occurs mapping the attributes

Copyright 2002-2006. All Rights Reserved.