|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modelmapper.internal.MappingEngineImpl
public class MappingEngineImpl
MappingEngine implementation that caches ConditionalConverters by source and destination type pairs.
Constructor Summary | |
---|---|
MappingEngineImpl(InheritingConfiguration configuration)
|
Method Summary | ||
---|---|---|
|
createDestination(MappingContext<S,D> context)
Creates an instance of the destination type for the context , capturing any errors that
may occur during instantiation. |
|
|
map(MappingContext<S,D> context)
Performs mapping using a TypeMap if one exists, else a converter if one applies, else a newly created TypeMap. |
|
|
map(S source,
Class<S> sourceType,
D destination,
Class<D> destinationType)
Initial entry point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingEngineImpl(InheritingConfiguration configuration)
Method Detail |
---|
public <S,D> D map(S source, Class<S> sourceType, D destination, Class<D> destinationType)
public <S,D> D map(MappingContext<S,D> context)
map
in interface MappingEngine
S
- source typeD
- destination typecontext
- to map for
D
public <S,D> D createDestination(MappingContext<S,D> context)
MappingEngine
context
, capturing any errors that
may occur during instantiation.
createDestination
in interface MappingEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |