1. 捕獲特定類中的所有連接點(diǎn)
使用within(TypePattern)切入點(diǎn),利用TypePattern指定特定類類型模式。語(yǔ)法:
pointcut <pointcut name>(<any values to be picked up>) : within(<class>);
2. 捕獲特定方法內(nèi)的所有連接點(diǎn)
使用withincode(Signature)切入點(diǎn)。語(yǔ)法:
pointcut <pointcut name>(<any values to be picked up>) : withincode(<modifier> <class>.<method>(<parameter types>));
posted on 2007-07-04 15:37
周銳 閱讀(212)
評(píng)論(0) 編輯 收藏 所屬分類:
AspectJ