1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ibatis.reflection.invoker;
18
19 import java.lang.reflect.InvocationTargetException;
20 import java.lang.reflect.Method;
21
22 import org.apache.ibatis.reflection.ReflectionException;
23
24 public class AmbiguousMethodInvoker extends MethodInvoker {
25 private final String exceptionMessage;
26
27 public AmbiguousMethodInvoker(Method method, String exceptionMessage) {
28 super(method);
29 this.exceptionMessage = exceptionMessage;
30 }
31
32 @Override
33 public Object invoke(Object target, Object[] args) throws IllegalAccessException, InvocationTargetException {
34 throw new ReflectionException(exceptionMessage);
35 }
36 }