package cn.sxt.dynamicproxy;
import java.util.ArrayList;
import java.util.List;
import cn.sxt.service.UserService;
import cn.sxt.service.UserServiceImpl;
public class Client {
public static void main(String[] args) {
// UserService userService=new UserServiceImpl();
// ProxyInovationHandler pih =new ProxyInovationHandler();
// pih.setTarget(userService);
// UserService proxy =(UserService)pih.getProxy();
// proxy.search();
ProxyInovationHandler ph =new ProxyInovationHandler();
ph.setTarget(new ArrayList());
List list =(List)ph.getProxy();
list.add("hello");
}