net.sourceforge.hiveutils.util
Interface MethodMappingErrorHandler

All Known Implementing Classes:
DefaultMethodMappingErrorHandler

public interface MethodMappingErrorHandler

Interface defining a callback mechanism to handle errors encountered in the course of a MethodMappingBuilder.

Author:
Jean-Francois Poilpret

Method Summary
 boolean handleIncompatibleMethods(java.lang.reflect.Method source, java.lang.reflect.Method target)
          Called back by MethodMappingBuilder when matching methods from source and target classes have incompatible return types.
 void handleNonExistingMethod(java.lang.reflect.Method source, java.lang.Class target)
          Called back by MethodMappingBuilder when one method from source class has no matching method in target class.
 

Method Detail

handleIncompatibleMethods

boolean handleIncompatibleMethods(java.lang.reflect.Method source,
                                  java.lang.reflect.Method target)
Called back by MethodMappingBuilder when matching methods from source and target classes have incompatible return types.

Parameters:
source - method from source class
target - matching method from target class
Returns:
true if MethodMappingBuilder should still add this mapping as if no error occurred

handleNonExistingMethod

void handleNonExistingMethod(java.lang.reflect.Method source,
                             java.lang.Class target)
Called back by MethodMappingBuilder when one method from source class has no matching method in target class.

Parameters:
source - method from source class
target - target class