ma.glasnost.orika.unenhance
Class BaseUnenhancer

java.lang.Object
  extended by ma.glasnost.orika.unenhance.BaseUnenhancer
All Implemented Interfaces:
UnenhanceStrategy

public class BaseUnenhancer
extends Object
implements UnenhanceStrategy

Provides a delegating unenhance strategy which also post-processes the unenhancement results using the associated super-type strategies.
See also: #SuperTypeResolverStrategy

Author:
matt.deboer@gmail.com

Constructor Summary
BaseUnenhancer()
           
 
Method Summary
 void addSuperTypeResolverStrategy(SuperTypeResolverStrategy strategy)
           
 void addUnenhanceStrategy(UnenhanceStrategy strategy)
           
<T> T
unenhanceObject(T object, Type<T> type)
           
<T> Type<T>
unenhanceType(T object, Type<T> type)
          Should return the unenhanced type to be used when determining attribute mapping information for the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseUnenhancer

public BaseUnenhancer()
Method Detail

addUnenhanceStrategy

public void addUnenhanceStrategy(UnenhanceStrategy strategy)

addSuperTypeResolverStrategy

public void addSuperTypeResolverStrategy(SuperTypeResolverStrategy strategy)

unenhanceType

public <T> Type<T> unenhanceType(T object,
                                 Type<T> type)
Description copied from interface: UnenhanceStrategy
Should return the unenhanced type to be used when determining attribute mapping information for the type.

Specified by:
unenhanceType in interface UnenhanceStrategy
Returns:

unenhanceObject

public <T> T unenhanceObject(T object,
                             Type<T> type)
Specified by:
unenhanceObject in interface UnenhanceStrategy


Copyright © 2013 Glasnost. All Rights Reserved.