public abstract class AbstractParameterizedContextMapper<T> extends Object implements ParameterizedContextMapper<T>
ParameterizedContextMapper
directly. Subclassing from this superclass,
the supplied context will be automatically cast to
DirContextOperations
. Note that if you use your own
DirObjectFactory
, this implementation will fail with a
ClassCastException
.Constructor and Description |
---|
AbstractParameterizedContextMapper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
doMapFromContext(DirContextOperations ctx)
Deprecated.
Map a single
DirContextOperation to an object. |
T |
mapFromContext(Object ctx)
Deprecated.
Map a single LDAP Context to an object.
|
public AbstractParameterizedContextMapper()
public final T mapFromContext(Object ctx)
ParameterizedContextMapper
ctx
is the object from a single SearchResult
,
Binding
, or a lookup operation.mapFromContext
in interface ContextMapper
mapFromContext
in interface ParameterizedContextMapper<T>
ctx
- the context to map to an object.protected abstract T doMapFromContext(DirContextOperations ctx)
DirContextOperation
to an object. The
supplied instance is the object supplied to
mapFromContext(Object)
cast to a
DirContextOperations
.ctx
- the context to map to an object.