<div>$B2r$G$9(B</div>
<div>$B!!!!(B</div>
<div>$B!!!!!!$$$D$b$*@$OC$K$J$F$*$j$^$9!#(B</div>
<div>$B!!!!(B</div>
<div>$B!!!!!!(Bpublic class LoginAuthInterceptor extends AbstractInterceptor {<br><span></span><br> $B!!!!(Bprivate MessageDao messageDao;<br><br>$B!!!!!!!!(B// setter$B>JN,(B<br><br>$B!!!!!!(Bpublic Object invoke(MethodInvocation invocation) throws Throwable {<br>
$B!!!!!!!!(B// $B0J2<!$>JN,(B<br><br>$B!!!!!!(B}</div>
<div> </div>
<div>$B!!!!!!0J>eJ}K!$N$h$&$JMxMQ$9$k$H!"(Bjava.lang.NullPointerException$B$r=P$9!#(B</div>
<div>$B!!!!!!(B<br>$B!!!!(Bpublic class LoginAuthInterceptor extends AbstractInterceptor {<br><span></span><br> $B!!!!(Bprivate MessageDao dao;<br><br>$B!!!!!!!!(B</div>
<div> $B!!!!!!(Bpublic void setDao(MessageDao dao) {<br> $B!!!!!!!!!!!!(Bthis.dao = dao;<br> $B!!!!!!(B}<br> $B!!!!!!!!(Bpublic MessageDao getDao() {<br> $B!!!!!!!!!!(Breturn dao;<br> $B!!!!!!!!(B}</div>
<div><br>$B!!!!!!(Bpublic Object invoke(MethodInvocation invocation) throws Throwable {</div>
<div> $B!%!%!%(B</div>
<div><br>$B!!!!!!!!!!!!(BMessage[] mes = dao.getAllMessage();</div>
<div> </div>
<div>$B!!!!!!!!!!!!!%!%!%(B<br>$B!!!!!!(B}</div>
<div> </div>
<div>$B!!!!(Bapp_aop.dicon$B$G@k8@$7$^$7$?!#(B<br>$B!!!!!!!!(B<components namespace="app_aop"></div>
<div>$B!!!!!!!!!!!!(B<component name="loginAuthInterceptor" class="com.teeda.interceptor.LoginAuthInterceptor" /></div>
<div>$B!!!!!!!!(B</components></div>
<div>$B!!!!(Bcustomizer.dicon$B$G@k8@$7$^$7$?!#(B</div>
<div>$B!!!!!!!!!!(B <component name="authAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"><br> $B!!!!!!!!!!!!(B<initMethod name="addInterceptorName"><br> <arg>"app_aop.loginAuthInterceptor"</arg><br>
$B!!!!!!!!!!!!(B</initMethod><br> <property name="pointcut">"prerender"</property><br> </component></div>
<div>$B!!(B //messageDao.java</div>
<div>
<p> package com.teeda.dao;</p>
<p> import com.teeda.entity.Message;</p>
<p> public interface MessageDao {<br> <br> public static final Class BEAN = Message.class;<br> <br> public static final String ARGS_findByMessageId = "id";<br> <br> public Message[] findByMessageId(String id);<br>
public Message[] getAllMessage();<br> }</p></div>
<div>$B!!0J>e$N$h$&$JMxMQ$9$k>l9g!"(BLoginAuthInterceptor $B$N%W%m%Q%F%#(BDao$B<hF@$7$^$;$s$G$7$?!#!!$@$+$i!"(BPageClass$B$K%W%m%Q%F%#(BDao$B$H(Bgetter/ setter $B%a%C%=!<%I$rMxMQ$7$F(B</div>
<div> </div>
<div>$B!!(BDao$B$r<hF@$G$-$k!#!!!!;d$O;HMQ$NJ}K!$O4V0c$$$,$"$k$G$9$,!#65$($F$/$@$5$$!#(B</div>
<div> $B0J>e!!$h$m$7$/$*4j$$$7$^$9!#(B</div>
<div> </div>