net.sourceforge.hiveutils.util
Interface MethodMappingBuilder

All Known Implementing Classes:
DefaultMethodMappingBuilder

public interface MethodMappingBuilder

Interface to generate a mapping between public methods of a source class (or interface) to equivalent methods (same name, same arguments, compatible returned type, but possibly different thrown exceptions).

Author:
Jean-Francois Poilpret

Method Summary
 java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> buildMapping(java.lang.Class source, java.lang.Class target, MethodMappingErrorHandler handler)
          Builds the map of equivalent methods from a source class to a target class.
 

Method Detail

buildMapping

java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> buildMapping(java.lang.Class source,
                                                                              java.lang.Class target,
                                                                              MethodMappingErrorHandler handler)
Builds the map of equivalent methods from a source class to a target class.

Parameters:
source - class (or interface) which methods need to be mapped to target
target - class (or interface) to which source methods need to be mapped
handler - the instance that will be called back when errors occur
Returns:
a Map of source Methods to equivalent target Methods