net.sf.jasperreports.engine.util
Class SingleProtectionDomainFactory

java.lang.Object
  extended by net.sf.jasperreports.engine.util.SingleProtectionDomainFactory
All Implemented Interfaces:
ProtectionDomainFactory

public class SingleProtectionDomainFactory
extends java.lang.Object
implements ProtectionDomainFactory

Implementation of ProtectionDomainFactory that wraps a single protection domain.

Version:
$Id: SingleProtectionDomainFactory.java 4595 2011-09-08 15:55:10Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Constructor Summary
SingleProtectionDomainFactory(java.security.ProtectionDomain protectionDomain)
          Create a factory.
 
Method Summary
 java.security.ProtectionDomain getProtectionDomain(java.lang.ClassLoader classloader)
          Returns the wrapped protection domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleProtectionDomainFactory

public SingleProtectionDomainFactory(java.security.ProtectionDomain protectionDomain)
Create a factory.

Parameters:
protectionDomain - the protection domain which will be returned for all classloaders
Method Detail

getProtectionDomain

public java.security.ProtectionDomain getProtectionDomain(java.lang.ClassLoader classloader)
Returns the wrapped protection domain.

Specified by:
getProtectionDomain in interface ProtectionDomainFactory
Parameters:
classloader - the classloader
Returns:
the protection domain to be used by the classloader


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com