g++: -l[some]: linker input file unused because linking not done
2012-07-19 10:31
381 查看
public interface IHelloWorld { void sayHello(); }
public class HelloWorldImpl implements IHelloWorld { public void sayHello() { System.out.println("Hello World!!"); } }
public class HelloWorldHandler implements InvocationHandler { IHelloWorld object; public HelloWorldHandler(IHelloWorld object) { this.object = object; } public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { System.out.println("before"); Object o = method.invoke(object, args); System.out.println("after"); return o; } }
public class proxyDemo { public static void main(String[] args) { InvocationHandler handler = new HelloWorldHandler(new HelloWorldImpl()); IHelloWorld proxy = (IHelloWorld)Proxy.newProxyInstance( HelloWorldImpl.class.getClassLoader(), HelloWorldImpl.class.getInterfaces(), handler); proxy.sayHello(); } }
before
Hello World!!
after
相关文章推荐
- g++: -l[some]: linker input file unused because linking not done
- linker input file unused because linking not done
- 问题linker input file unused because linking not done
- [Linux-C++] linker input file unused because linking not done 提示 编译与链接的知识
- 编译mjpg-streamer input_uvc 错误 linker input file unused because linking not done
- 关于makefile报错:linker input file unused because linking not done
- 静态库调用静态库&静态库加载静态库------谈谈undefined reference to和linker input file unused because linking not done
- DBCC SHRINKDATABASE xxxx was skipped because the file does not have enough free
- Could not find qmake configuration file linux-g++.
- could not open input file linux 编写 shell遇到了小问题
- "File not found""linker command failed with exit code 1" in Xcode 7.2.1
- Ubuntu 16.04使用NASM编译时用ld链接程序出现:i386 架构于输入文件 sandbox.o 与 i386:x86-64 输出不兼容(I386 architecture in the input file sandbox.o is not compatible with i386: x86-64 output)
- ChromeDriver can't do file uploads if file input not clickable
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- Could not read input channel file descriptors from parcel
- Error:The method setInputPaths(JobConf, String) in the type FileInputFormat is not
- An invalid form control with name='file[]' is not focusable.间接点击form表单的<input type="file">出现的问题
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- Spring错误:java.io.FileNotFoundException: class path resource ..cannot be opened because it does not e