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