ma.glasnost.orika.unenhance
Interface UnenhanceStrategy

All Known Implementing Classes:
BaseUnenhancer, HibernateUnenhanceStrategy

public interface UnenhanceStrategy

Defines a strategy to unenhance an object specifically a proxy one like those of Hibernate.
Unenhanement can be used in cases where a class needs to be "unwrapped" from a proxy, or when a super-type or interface should be used for an object instead of the object's own class.

Author:
S.M. El Aatifi

Method Summary
<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.
 

Method Detail

unenhanceType

<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.

Type Parameters:
T -
Parameters:
type -
Returns:

unenhanceObject

<T> T unenhanceObject(T object,
                      Type<T> type)


Copyright © 2013 Glasnost. All Rights Reserved.