ma.glasnost.orika.unenhance
Class BaseUnenhancer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseUnenhancer
public BaseUnenhancer()
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.