In the vast majority of cases, the Object passed to a @ContextMapper@ is a @DirContextAdapter@. We could provide a base @ContextMapper@ implementation that does the cast to @DirContextAdapter@ and delegates to a template method to do the actual mapping.
["Mattias Hellborg Arthursson":https://jira.spring.io/secure/ViewProfile.jspa?name=marthursson](Migrated from ["LDAP-76":https://jira.spring.io/browse/LDAP-76?redirect=false]) said:
In the vast majority of cases, the Object passed to a @ContextMapper@ is a @DirContextAdapter@. We could provide a base @ContextMapper@ implementation that does the cast to @DirContextAdapter@ and delegates to a template method to do the actual mapping.