public class SingleProtectionDomainFactory extends Object implements ProtectionDomainFactory
ProtectionDomainFactory that
wraps a single protection domain.| Constructor and Description |
|---|
SingleProtectionDomainFactory(ProtectionDomain protectionDomain)
Create a factory.
|
| Modifier and Type | Method and Description |
|---|---|
ProtectionDomain |
getProtectionDomain(ClassLoader classloader)
Returns the wrapped protection domain.
|
public SingleProtectionDomainFactory(ProtectionDomain protectionDomain)
protectionDomain - the protection domain which will be returned for all classloaderspublic ProtectionDomain getProtectionDomain(ClassLoader classloader)
getProtectionDomain in interface ProtectionDomainFactoryclassloader - the classloaderCopyright © 2017. All rights reserved.