Generates Java object proxies leveraging invokedynamic.
Goals:
- Easy to use API
- Hides the class file generation
- Flexible as you bring your own bootstrap method
- Not too many knobs to turn
See some examples in the test directory:
- ProxyTest: Similar to java.lang.reflect.Proxy, uses an InvocationHandler
- FFITest: derives the information for a foreign downcall from an interface
- DelegateTest: delegates all method calls to a target and prints out the method name, return value and parameters to System.out