public class ContextMapperCallbackHandler<T> extends CollectingNameClassPairCallbackHandler<T>
Binding, and then passed to
the specified ContextMapper for translation.| Constructor and Description |
|---|
ContextMapperCallbackHandler(ContextMapper<T> mapper)
Constructs a new instance wrapping the supplied
ContextMapper. |
| Modifier and Type | Method and Description |
|---|---|
T |
getObjectFromNameClassPair(NameClassPair nameClassPair)
Cast the NameClassPair to a
Binding and pass its object to
the ContextMapper. |
getList, handleNameClassPairpublic ContextMapperCallbackHandler(ContextMapper<T> mapper)
ContextMapper.mapper - the mapper to be called for each entry.public T getObjectFromNameClassPair(NameClassPair nameClassPair) throws NamingException
Binding and pass its object to
the ContextMapper.getObjectFromNameClassPair in class CollectingNameClassPairCallbackHandler<T>nameClassPair - a Binding instance.NamingException - if an error occurs.ObjectRetrievalException - if the object of the nameClassPair is null.