锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲天天综合,91精品国产色综合久久,3dmax动漫人物在线看http://www.aygfsteel.com/magibt/category/27979.htmlzh-cnSat, 08 Dec 2007 12:56:28 GMTSat, 08 Dec 2007 12:56:28 GMT60aspectj瀛︿範(fàn)http://www.aygfsteel.com/magibt/articles/166260.htmlEdward'sEdward'sSat, 08 Dec 2007 05:42:00 GMThttp://www.aygfsteel.com/magibt/articles/166260.htmlhttp://www.aygfsteel.com/magibt/comments/166260.htmlhttp://www.aygfsteel.com/magibt/articles/166260.html#Feedback0http://www.aygfsteel.com/magibt/comments/commentRss/166260.htmlhttp://www.aygfsteel.com/magibt/services/trackbacks/166260.html1銆佹坊鍔爅ar鍖?br>Spring鐨勬牳蹇冨寘
$SPRING_HOME/dist/spring.jar,
$SPRING_HOME/lib/jakarta-commons/commons-logging.jar,
$SPRING_HOME/lib/log4jlog4j-1.2.14.jar
aspectj鏀寔鐨刯ar鍖?br>$SPRING_HOME/lib/aspectj/*.jar

2銆佷慨鏀歸厤緗枃浠訛紝瀵笰op鎻愪緵浠g爜鎻愮ず
xmlns:aop="
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd

3銆佸垱寤烘帴鍙e拰瀹炵幇綾?br>鎺ュ彛
public interface UserManager {
    public void addUser(String name);
    public void delUser(int id);

}
瀹炵幇綾?br>public class UserManagerImpl implements UserManager {

    public void addUser(String name) {
        System.out.println("addUser " + name);
    }

    public void delUser(int id) {
        System.out.println("delUser "+id);
    }

}
PointCut鍜孉dvise鐨勭被
@Aspect
public class MyUserManager {
    @Pointcut("execution(* add*(..))")
    public void addUser(){}
    @Before("addUser()")
    public void myMethod(){
        System.out.println("myMethod");
    }

}
4銆侀厤緗枃浠惰緗?br><aop:aspectj-autoproxy />
<bean id="user" class="org.edward.UserManagerImpl" />
<bean id="aop" class="org.edward.MyUserManager" />

5銆佸鏋滆浠g悊鐨勫璞℃病鏈夊疄鐜扮殑鎺ュ彛錛屽氨蹇呴』鍔犲叆CBLIB鐨勬敮鎸?br>鍔犲叆$SPRING_HOME/lib/cglib/cglib-nodep-2.1_3.jar
淇敼閰嶇疆鏂囦歡
<aop:aspectj-autoproxy proxy-target-class="true" />

#Spring Aop
    <bean id="user" class="org.edward.aop3.UserManagerImpl" />
    <bean id="aop" class="org.edward.aop3.MyUserManager" />
    <aop:config>
        <aop:aspect id="log" ref="aop">
            <aop:pointcut id="logHello" expression="execution(* add*(..))"/>
            <aop:before pointcut-ref="logHello" method="myMethod"/>
            <aop:after pointcut-ref="logHello" method="myMethod"/>
        </aop:aspect>
    </aop:config>



Edward's 2007-12-08 13:42 鍙戣〃璇勮
]]>
銆愮炕璇戙慡pring 2.5鏋舵瀯鍥?杞?http://www.aygfsteel.com/magibt/articles/158370.htmlEdward'sEdward'sMon, 05 Nov 2007 14:18:00 GMThttp://www.aygfsteel.com/magibt/articles/158370.htmlhttp://www.aygfsteel.com/magibt/comments/158370.htmlhttp://www.aygfsteel.com/magibt/articles/158370.html#Feedback0http://www.aygfsteel.com/magibt/comments/commentRss/158370.htmlhttp://www.aygfsteel.com/magibt/services/trackbacks/158370.html鎴戞洿鏂頒簡鍒氬垰姝e紡鍙戝竷鐨凷pring 2.5鐨勬灦鏋勫浘銆?br>浠諱綍鏂板鐨勬垨鑰呮敼鍙樼殑鍖呴兘琚珮浜樉紺轟簡錛堣嚜2.0.6鐗堟湰涔嬪悗錛夈?br>榪欐槸鏂扮殑欏跺眰鏋舵瀯鍥?/strong>錛?br>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

榪欐槸杈冨ぇ瀛愮郴緇熺殑鍐呴儴鏋舵瀯鍥撅細(xì)
org.springframework.aop:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

org.springframework.beans:

 

 

 

 

 

 

 

 

 

 

org.springframework.jdbc:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

org.springframework.jms:

 

 

 

 

 

 

 

 

 

 

 

org.springframework.orm:

 

 

 

 

 

 

 

 

org.springframework.web:

 

 

 

 

 

 

 

 

 

 

 

 

鍘熸枃鍦板潃錛歨ttp://chris.headwaysoftware.com/2007/11/spring-25-archi.html



Edward's 2007-11-05 22:18 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 汝城县| 客服| 玉溪市| 壶关县| 敦化市| 滦平县| 广水市| 民乐县| 三门峡市| 广平县| 饶河县| 双流县| 平顺县| 大宁县| 邯郸市| 淮北市| 汶上县| 安丘市| 旌德县| 徐水县| 靖州| 阜新| 鹿邑县| 芦溪县| 武平县| 板桥市| 秭归县| 扎鲁特旗| 孟连| 孟津县| 陵水| 城口县| 通州区| 遂溪县| 庐江县| 荣成市| 天柱县| 区。| 广河县| 横峰县| 富顺县|