petclinic-uncached

moved pointcut to @Repository instead of @Service In that

2/8/2013 4:26:00 AM

Details

.springBeans 2(+0 -2)

diff --git a/.springBeans b/.springBeans
index a22a616..2f9dc4c 100644
--- a/.springBeans
+++ b/.springBeans
@@ -11,7 +11,6 @@
 		<config>src/main/webapp/WEB-INF/mvc-view-config.xml</config>
 		<config>src/main/resources/spring/dao-config.xml</config>
 		<config>src/main/resources/spring/datasource-config.xml</config>
-		<config>src/main/resources/spring/service-config.xml</config>
 	</configs>
 	<configSets>
 		<configSet>
@@ -24,7 +23,6 @@
 				<config>src/main/resources/spring/dao-config.xml</config>
 				<config>src/main/resources/spring/datasource-config.xml</config>
 				<config>src/main/resources/spring/jmx-aop-config.xml</config>
-				<config>src/main/resources/spring/service-config.xml</config>
 			</configs>
 			<profiles>
 			</profiles>
diff --git a/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java b/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java
index 234a25b..9e2b68e 100644
--- a/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java
+++ b/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java
@@ -55,7 +55,7 @@ public class CallMonitoringAspect {
 	}
 
 
-	@Around("within(@org.springframework.stereotype.Service *)")
+	@Around("within(@org.springframework.stereotype.Repository *)")
 	public Object invoke(ProceedingJoinPoint joinPoint) throws Throwable {
 		if (this.isEnabled) {
 			StopWatch sw = new StopWatch(joinPoint.toShortString());
diff --git a/src/main/webapp/WEB-INF/mvc-core-config.xml b/src/main/webapp/WEB-INF/mvc-core-config.xml
index 3b1a242..6ce11a4 100644
--- a/src/main/webapp/WEB-INF/mvc-core-config.xml
+++ b/src/main/webapp/WEB-INF/mvc-core-config.xml
@@ -15,7 +15,7 @@
 	<!--
 		- POJOs labeled with the @Controller and @Service annotations are auto-detected.
 	-->
-	<context:component-scan base-package="org.springframework.samples.petclinic.web"/>
+	<context:component-scan base-package="org.springframework.samples.petclinic.web, org.springframework.samples.petclinic.service"/>
 	
 	 <mvc:annotation-driven  conversion-service="conversionService"/>
 	
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 0dfdc6b..aa7171e 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -23,7 +23,7 @@ id="WebApp_ID" version="2.5">
 	-->
 	<context-param>
 		<param-name>contextConfigLocation</param-name>
-		<param-value>classpath:spring/dao-config.xml, classpath:spring/service-config.xml, classpath:spring/jmx-aop-config.xml</param-value>
+		<param-value>classpath:spring/dao-config.xml, classpath:spring/jmx-aop-config.xml</param-value>
 	</context-param>
 	
 	<listener>