Eclipse中有没有办法生成代理类(如代理模式,而不是远程调用)?有点像这样的东西
public class FooBar{
public int getBiz(){
return 1234;
}
}
Run Code Online (Sandbox Code Playgroud)
生成
public class FooBarProxy{
protected FooBar foobar;
public FooBarProxy(FooBar f) {...}
public int getBiz(){
return foobar.getBiz()
}
}
Run Code Online (Sandbox Code Playgroud)