|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.core.simple.AbstractParameterizedContextMapper<T>
public abstract class AbstractParameterizedContextMapper<T>
Abstract superclass that may be used instead of implementing
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 Summary | |
---|---|
AbstractParameterizedContextMapper()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractParameterizedContextMapper()
Method Detail |
---|
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.
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |