Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1027669 // proxyFromInvocationHandler

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (29L/1K).

1  
static <A> A proxyFromInvocationHandler(Class<A> intrface, InvocationHandler handler) {
2  
  ret (A) java.lang.reflect.Proxy.newProxyInstance(intrface.getClassLoader(),
3  
    new Class[] { intrface }, handler);
4  
}

Author comment

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: 165 / 241
Referenced in: [show references]