Package net.sf.jasperreports.engine.util
Class SingleProtectionDomainFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.util.SingleProtectionDomainFactory
-
- All Implemented Interfaces:
ProtectionDomainFactory
public class SingleProtectionDomainFactory extends Object implements ProtectionDomainFactory
Implementation ofProtectionDomainFactory
that wraps a single protection domain.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SingleProtectionDomainFactory(ProtectionDomain protectionDomain)
Create a factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionDomain
getProtectionDomain(ClassLoader classloader)
Returns the wrapped protection domain.
-
-
-
Constructor Detail
-
SingleProtectionDomainFactory
public SingleProtectionDomainFactory(ProtectionDomain protectionDomain)
Create a factory.- Parameters:
protectionDomain
- the protection domain which will be returned for all classloaders
-
-
Method Detail
-
getProtectionDomain
public ProtectionDomain getProtectionDomain(ClassLoader classloader)
Returns the wrapped protection domain.- Specified by:
getProtectionDomain
in interfaceProtectionDomainFactory
- Parameters:
classloader
- the classloader- Returns:
- the protection domain to be used by the classloader
-
-