[Seasar-user:13092] AOPについて

李乐 [E-MAIL ADDRESS DELETED]
2008年 2月 28日 (木) 16:29:11 JST


Àî˜S¤Ç¤¹¡£
¤¤¤Ä¤â¤ªÊÀÔ’¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

¥×¥í¥¸¥§¥¯¥ÈÄÚ¤ÎActionÄÚ¤ÎÈ«¤Æ¤ÎDB¸üФäÏ÷³ý¤Ê¤ÉIntercept¤·¤¿¤¤ˆöºÏ¤Ï¤É¤¦¤¹¤ë£¿
£¨¥á¥½¥Ã¥É¤òIntercept¤·¤Æ¡¢˜ØÏÞ¤òÅжϤ·¤¿¤¤£©

public class MyThrowableInterceptor extends AbstractInterceptor {

    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("before");
        Object ret = invocation.proceed();
        System.out.println("after");
        return ret;

}

**.dicon
<component name="myThrowableInterceptor"
class="**.**.MyThrowableInterceptor">
  <aspect pointcut="?"></aspect>
<property name="pointcut">?</property>
 </component>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20080228/8d511084/attachment-0001.html 


Seasar-user メーリングリストの案内