摘要:        
利用JDK动态代理机制实现简单的多层拦截器首先JDK动态代理是基于接口实现的,所以我们先定义一个接口public interface Executer { public Object execute(String param);}然后我们写一个类来实现该接口,我们将该类成为目标类。接下来我们将要对execute方法进行拦截!public class SampleExecuter implements Executer { public Object execute(String param) { System.out.println("SampleExecuter.e...    阅读全文
posted @ 2013-10-04 19:36
大新博客
阅读(990)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号