18 lines
408 B
Java
18 lines
408 B
Java
|
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);
|
||
|
}
|
||
|
}
|