Changes from Version 1 of aop

차이점 주위로
다음 차이점은 무시하기:
작성자:
anonymous (IP: 221.150.127.103)
날짜/시간:
2012-08-14 PM 11:59:01 (13 년 전)
설명:

--

Legend:

변경되지 않음
추가됨
제거됨
변경됨
  • aop

    v0 v1  
     1<aop:config> 
     2 
     3        <aop:aspect ref="audience"> 
     4 
     5                <aop:before pointcut="" method="takeSeats"/> 
     6 
     7                <aop:before pointcut="" method="turnOffCellPhones"/> 
     8 
     9                <aop:after-returning pointcut="" method="applaud"/> 
     10 
     11                <aop:after-throwing pointcut="" method="demandRefund"/> 
     12                 
     13        </aop:aspect> 
     14 
     15</aop:config> 
     16 
     17 
     18<bean id="audience" class="com.springinactin.springidol.Audience"/> 
     19 
     20public class Audience{ 
     21 
     22        //공연 전 
     23        public void takeSeats(){ 
     24 
     25        } 
     26 
     27        //공연 전 
     28        public void turnOffCellPhones(){ 
     29 
     30        } 
     31 
     32        //공연 후 
     33        public void applaud(){ 
     34 
     35        } 
     36 
     37        //공연 실패 후 
     38        public void demandRefund(){ 
     39 
     40        }        
     41}