|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.impl.mapping.strategy.MappingStrategyRecorder
public class MappingStrategyRecorder
MappingStrategyRecorder is used to record the important details regarding
the branch logic and component lookups performed for a given set of input
types.
After recording these details, it can be used to generate an appropriate
MappingStrategy instance which can be cached and reused for that particular
set of inputs.
| Constructor Summary | |
|---|---|
MappingStrategyRecorder(MappingStrategyKey key,
UnenhanceStrategy unenhanceStrategy)
|
|
| Method Summary | |
|---|---|
String |
describeDetails()
Describes the details of the strategy chosen for this particular set of inputs |
Converter<Object,Object> |
getResolvedConverter()
|
Type<?> |
getResolvedDestinationType()
|
Mapper<Object,Object> |
getResolvedMapper()
|
ObjectFactory<Object> |
getResolvedObjectFactory()
|
Type<?> |
getResolvedSourceType()
|
boolean |
isCopyByReference()
|
boolean |
isInstantiate()
|
boolean |
isMapReverse()
|
boolean |
isUnenhance()
|
MappingStrategy |
playback()
|
void |
setCopyByReference(boolean copyByReference)
Set whether the strategy should use copy-by-reference |
void |
setInstantiate(boolean instantiate)
Sets whether the strategy should create new instances |
void |
setMapReverse(boolean mapReverse)
Set whether this strategy should map in reverse |
void |
setResolvedConverter(Converter<Object,Object> resolvedConverter)
Set the converter that should be used by the MappingStrategy |
void |
setResolvedDestinationType(Type<?> resolvedDestinationType)
Set the destination type to be used with the strategy |
void |
setResolvedMapper(Mapper<Object,Object> resolvedMapper)
Sets the mapper to be used with the strategy |
void |
setResolvedObjectFactory(ObjectFactory<?> resolvedObjectFactory)
Set the ObjectFactory to use for the strategy |
void |
setResolvedSourceType(Type<?> resolvedSourceType)
Sets the source type that should be used with the strategy |
void |
setUnenhance(boolean unenhance)
Sets whether the strategy should perform unenhancement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingStrategyRecorder(MappingStrategyKey key,
UnenhanceStrategy unenhanceStrategy)
key - unenhanceStrategy - | Method Detail |
|---|
public boolean isUnenhance()
public boolean isInstantiate()
public void setInstantiate(boolean instantiate)
instantiate - public void setUnenhance(boolean unenhance)
unenhance - public Converter<Object,Object> getResolvedConverter()
public void setResolvedConverter(Converter<Object,Object> resolvedConverter)
resolvedConverter - public Type<?> getResolvedSourceType()
public void setResolvedSourceType(Type<?> resolvedSourceType)
resolvedSourceType - public Type<?> getResolvedDestinationType()
public void setResolvedDestinationType(Type<?> resolvedDestinationType)
resolvedDestinationType - public boolean isCopyByReference()
public void setCopyByReference(boolean copyByReference)
copyByReference - public boolean isMapReverse()
public void setMapReverse(boolean mapReverse)
mapReverse - public Mapper<Object,Object> getResolvedMapper()
public void setResolvedMapper(Mapper<Object,Object> resolvedMapper)
resolvedMapper - public ObjectFactory<Object> getResolvedObjectFactory()
public void setResolvedObjectFactory(ObjectFactory<?> resolvedObjectFactory)
resolvedObjectFactory - public MappingStrategy playback()
public String describeDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||