|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
LdapTemplate.search(Name, String,
AttributesMapper)
,
ContextMapper
Method Summary | |
java.lang.Object |
mapFromAttributes(javax.naming.directory.Attributes attributes)
Map Attributes to an object. |
Method Detail |
public java.lang.Object mapFromAttributes(javax.naming.directory.Attributes attributes) throws javax.naming.NamingException
attributes
- attributes from a SearchResult.
javax.naming.NamingException
- if any error occurs mapping the attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |