SWS-702 - sws:annotation-driven does not pick up @Endpoint annotations on classes that are JDK proxies

This commit is contained in:
Arjen Poutsma
2011-05-19 12:39:49 +00:00
parent 6b27590afe
commit bd62e54013
2 changed files with 9 additions and 8 deletions

View File

@@ -40,11 +40,11 @@ public class LogAspect {
}
@Around("loggedMethod()")
public void log(ProceedingJoinPoint joinPoint) throws Throwable {
public Object log(ProceedingJoinPoint joinPoint) throws Throwable {
logInvoked = true;
logger.info("Before: " + joinPoint.getSignature());
try {
joinPoint.proceed();
return joinPoint.proceed();
}
finally {
logger.info("After: " + joinPoint.getSignature());

View File

@@ -2,18 +2,19 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:sws="http://www.springframework.org/schema/web-services"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<aop:aspectj-autoproxy/>
<bean id="mapping"
class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping"/>
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd">
<bean id="endpoint" class="org.springframework.ws.server.endpoint.mapping.PayloadRootEndpoint"/>
<aop:aspectj-autoproxy/>
<bean id="other" class="org.springframework.ws.server.endpoint.mapping.OtherBean"/>
<bean id="logAspect" class="org.springframework.ws.server.endpoint.mapping.LogAspect"/>
<sws:annotation-driven/>
</beans>