ma.glasnost.orika.inheritance
Interface SuperTypeResolverStrategy

All Known Implementing Classes:
DefaultSuperTypeResolverStrategy

public interface SuperTypeResolverStrategy

This strategy is used by the super-type resolver to determine when and how to lookup a super-type, and and also provides decision as to whether the super-type is accepted.

Author:
matt.deboer@gmail.com

Method Summary
 boolean accept(Type<?> type)
           
 boolean shouldLookupSuperType(Type<?> type)
           
 boolean shouldPreferClassOverInterface()
           
 

Method Detail

accept

boolean accept(Type<?> type)
Parameters:
type -
Returns:
true if the proposed super-type is acceptable

shouldLookupSuperType

boolean shouldLookupSuperType(Type<?> type)
Parameters:
type -
Returns:
true if a super-type should be looked up for the proposed type; false signifies that the class should be returned as-is.

shouldPreferClassOverInterface

boolean shouldPreferClassOverInterface()
Returns:
true if a super class(es) should be looked-up first before trying interfaces


Copyright © 2013 Glasnost. All Rights Reserved.