Libraryless. Click here for Pure Java version (29L/1K).
static <A> A proxyFromInvocationHandler(Class<A> intrface, InvocationHandler handler) { ret (A) java.lang.reflect.Proxy.newProxyInstance(intrface.getClassLoader(), new Class[] { intrface }, handler); }
Began life as a copy of #1003492
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027669 |
Snippet name: | proxyFromInvocationHandler |
Eternal ID of this version: | #1027669/1 |
Text MD5: | 20ed79cb2714de093fe69a5d5109d5b4 |
Transpilation MD5: | cd31b2d01d9cab4f59ee8800f1d21b8b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-29 23:08:48 |
Source code size: | 210 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 239 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027670 - singleObjectMethodProxy |