github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example_osv_java_servlet/src/main/resources/spring/tools-config.xml (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Application context definition for PetClinic on JPA. 4 --> 5 <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 6 xmlns:aop="http://www.springframework.org/schema/aop" 7 xmlns:context="http://www.springframework.org/schema/context" 8 xmlns:cache="http://www.springframework.org/schema/cache" 9 xmlns="http://www.springframework.org/schema/beans" 10 xsi:schemaLocation="http://www.springframework.org/schema/aop 11 http://www.springframework.org/schema/aop/spring-aop.xsd 12 http://www.springframework.org/schema/beans 13 http://www.springframework.org/schema/beans/spring-beans.xsd 14 http://www.springframework.org/schema/cache 15 http://www.springframework.org/schema/cache/spring-cache.xsd 16 http://www.springframework.org/schema/context 17 http://www.springframework.org/schema/context/spring-context.xsd"> 18 19 <!-- 20 Simply defining this bean will cause requests to owner names to be saved. 21 This aspect is defined in petclinic.jar's META-INF/aop.xml file. 22 Note that we can dependency inject this bean like any other bean. 23 --> 24 <aop:aspectj-autoproxy> 25 <aop:include name="callMonitor"/> 26 </aop:aspectj-autoproxy> 27 28 <!-- Call monitoring aspect that monitors call count and call invocation time --> 29 <bean id="callMonitor" class="org.springframework.samples.petclinic.util.CallMonitoringAspect"/> 30 31 <!-- 32 Exporter that exposes the CallMonitoringAspect via JMX, 33 based on the @ManagedResource, @ManagedAttribute, and @ManagedOperation annotations. 34 --> 35 <context:mbean-export/> 36 37 <!-- enables scanning for @Cacheable annotation --> 38 <cache:annotation-driven/> 39 40 <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"> 41 <property name="cacheManager" ref="ehcache"/> 42 </bean> 43 44 <bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> 45 <property name="configLocation" value="classpath:cache/ehcache.xml"/> 46 </bean> 47 48 49 </beans>