use of org.jboss.modules.security.ModularProtectionDomain in project jboss-modules by jboss-modules.
the class ModuleClassLoader method getProtectionDomain.
private ProtectionDomain getProtectionDomain(CodeSource codeSource) {
final IdentityHashMap<CodeSource, ProtectionDomain> map = protectionDomains;
synchronized (map) {
ProtectionDomain protectionDomain = map.get(codeSource);
if (protectionDomain == null) {
final PermissionCollection permissions = module.getPermissionCollection();
protectionDomain = new ModularProtectionDomain(codeSource, permissions, this);
map.put(codeSource, protectionDomain);
}
return protectionDomain;
}
}
Aggregations