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 ProtectionDomainFactory
classloader
- the classloaderCopyright © 2015. All rights reserved.