Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ed55127

Browse files
Merge pull request #3415 from brucelwl/patch-1
Made MapperMethodInvoker public
2 parents d8be9eb + dd28727 commit ed55127

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2009-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.apache.ibatis.binding;
17+
18+
import java.lang.reflect.Method;
19+
20+
import org.apache.ibatis.session.SqlSession;
21+
22+
public interface MapperMethodInvoker {
23+
24+
Object invoke(Object proxy, Method method, Object[] args, SqlSession sqlSession) throws Throwable;
25+
26+
}

‎src/main/java/org/apache/ibatis/binding/MapperProxy.java‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ private MethodHandle getMethodHandleJava9(Method method)
9393
declaringClass);
9494
}
9595

96-
interface MapperMethodInvoker {
97-
Object invoke(Object proxy, Method method, Object[] args, SqlSession sqlSession) throws Throwable;
98-
}
99-
10096
private static class PlainMethodInvoker implements MapperMethodInvoker {
10197
private final MapperMethod mapperMethod;
10298

‎src/main/java/org/apache/ibatis/binding/MapperProxyFactory.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import java.util.concurrent.ConcurrentHashMap;
2222

23-
import org.apache.ibatis.binding.MapperProxy.MapperMethodInvoker;
2423
import org.apache.ibatis.session.SqlSession;
2524

2625
/**

‎src/test/java/org/apache/ibatis/binding/BindingTest.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import net.sf.cglib.proxy.Factory;
4646

4747
import org.apache.ibatis.BaseDataTest;
48-
import org.apache.ibatis.binding.MapperProxy.MapperMethodInvoker;
4948
import org.apache.ibatis.cursor.Cursor;
5049
import org.apache.ibatis.domain.blog.Author;
5150
import org.apache.ibatis.domain.blog.Blog;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /