1 import java
.lang
.reflect
.Proxy
;
2 import java
.lang
.reflect
.InvocationHandler
;
3 import java
.lang
.reflect
.Method
;
8 public static class MyInvocationHandler
implements InvocationHandler
10 public Object
invoke (Object proxy
,
15 System
.out
.println (args
[0]);
20 public static void main (String
[] args
)
23 InvocationHandler ih
= new MyInvocationHandler();
25 SocketOptions c
= (SocketOptions
)
26 Proxy
.newProxyInstance (SocketOptions
.class.getClassLoader(),
27 new Class
[]{SocketOptions
.class},
32 } catch (Exception e
) {