"Spring Source analysis" Design for cutting-plane programming architecture

Source: Internet
Author: User
Tags aop

Springaopxml configuration Meaning

<!--2 <bean id= "TransactionManager" 3 class= "Org.springframework.jdbc.datasource.DataSourceTransactionManager" > 4 <property name= "DataSource" ref= "Jamon-proxy-datasource" ></property> 5 </bean> 6  -7<!--Transaction Notification -8<Tx:adviceID= "Txadvice"Transaction-manager= "TransactionManager">9<tx:attributes>Ten<Tx:methodname= "add*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> One<Tx:methodname= "del*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> A<Tx:methodname= "upd*"Propagation= "REQUIRED"rollback-for= "Exception,smoexception,bmoexception,daoexception" /> -<Tx:methodname="*"Propagation= "SUPPORTS"read-only= "true" /> -</tx:attributes> the</Tx:advice> -<!--Spring AOP Config 17 explains (* com.evan.crm.service.*.* (..)) The meaning of several wildcard characters: 18 The first *--pass with any return value type 19 The second *--Pass package Com.evan.crm.service any CLASS20 under the third *--pass package Com.evan.crm.service any CL An arbitrary method of the 21-four: --A wildcard method can have 0 or more parameters - at<Aop:config> -<Aop:pointcutID= "Servicespointcut"expression= "Execution (* COM.JSTRD.MSS). *smoimpl.* (..)) " /> -<Aop:advisorAdvice-ref= "Blueprint.txadvice"Pointcut-ref= "Servicespointcut" /> -</Aop:config> -</Beans>   
View Code

"Spring Source analysis" Design for cutting-plane programming architecture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.