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. |
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 mappedhandler
- the instance that will be called back when errors occur
- Returns:
- a
Map
of source Method
s to
equivalent target Method
s