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

8
LINES

< > BotCompany Repo | #1016274 // acc_classLoaders - check current access control list

JavaX fragment (include)

static L<ClassLoader> acc_classLoaders() {
  ret acc_classLoaders(AccessController.getContext());
}

static L<ClassLoader> acc_classLoaders(AccessControlContext context) {
  ProtectionDomain[] domains = (ProtectionDomain[]) call(context, 'getContext);
  ret map(domains, func(ProtectionDomain d) -> ClassLoader { d.getClassLoader() });
}

Author comment

Began life as a copy of #1016273

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016274
Snippet name: acc_classLoaders - check current access control list
Eternal ID of this version: #1016274/2
Text MD5: 861867cc15f90cc595b89ba89d776841
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-13 12:40:57
Source code size: 344 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 406
Version history: 1 change(s)
Referenced in: [show references]