File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/java/org/springframework/ws/server/endpoint/mapping Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 34
34
<groupId >org.springframework</groupId >
35
35
<artifactId >spring-context</artifactId >
36
36
</dependency >
37
+ <dependency >
38
+ <groupId >org.springframework</groupId >
39
+ <artifactId >spring-aop</artifactId >
40
+ </dependency >
37
41
<dependency >
38
42
<groupId >org.springframework</groupId >
39
43
<artifactId >spring-web</artifactId >
163
167
<scope >test</scope >
164
168
</dependency >
165
169
</dependencies >
166
- </project >
170
+ </project >
Original file line number Diff line number Diff line change 20
20
import java .util .HashMap ;
21
21
import java .util .Map ;
22
22
23
+ import org .springframework .aop .support .AopUtils ;
23
24
import org .springframework .beans .BeansException ;
24
25
import org .springframework .context .ApplicationContextException ;
25
26
import org .springframework .core .JdkVersion ;
@@ -136,17 +137,13 @@ protected String getLookupKeyForMethod(Method method) {
136
137
/**
137
138
* Return the class or interface to use for method reflection.
138
139
* <p/>
139
- * Default implementation returns the target class for a CGLIB proxy, and the class of the given bean else (for a
140
- * JDK proxy or a plain bean class).
140
+ * Default implementation delegates to {@link AopUtils#getTargetClass(Object)}.
141
141
*
142
142
* @param endpoint the bean instance (might be an AOP proxy)
143
143
* @return the bean class to expose
144
144
*/
145
145
protected Class getEndpointClass (Object endpoint ) {
146
- Class clazz = endpoint .getClass ();
147
- // The following is actually in Spring 2 ClassUtils.getUserClass, but since Spring-WS is Spring 1.2.9 upwards,
148
- // we can't use it
149
- return clazz != null && clazz .getName ().indexOf ("$$" ) != -1 ? clazz .getSuperclass () : clazz ;
146
+ return AopUtils .getTargetClass (endpoint );
150
147
}
151
148
152
149
}
You can’t perform that action at this time.
0 commit comments