import java.lang.reflect*;
public class (Name) implements InvocationHandler{
private Object targetObject;
public Object createProxyInstance(Object targetObject){
this.targetObject=targetObject;
return Proxy.newProxyInstance(this.target.getClss().getClassLoader(),
this.targetObject.getClass().getInterfaces(),this);
}
public Object invoke(Object proxy,Method method ,Object[] ars) throw Throwable{
Object result=method.invoke(targetObject,args);
return result;
}
}