ecology_maven/customutil/proxy/staticProxy/interfaceModel/Test.java

18 lines
408 B
Java
Raw Normal View History

2021-11-25 21:46:05 +08:00
package customutil.proxy.staticProxy.interfaceModel;
/**
* @author EBU7-dev1-ayh
* @create 2021/11/25 0025 12:09
*/
public class Test {
public static void main(String[] args) {
customerImpl customer = new customerImpl();
// 创建代理对象
IOrderInterface orderInterface = new DeliverClerkImpl(customer);
String result = orderInterface.order("红烧肉");
System.out.println(result);
}
}