org.crosswire.common.util
Class CWClassLoader.PrivilegedLoader<T>

java.lang.Object
  extended by org.crosswire.common.util.CWClassLoader.PrivilegedLoader<T>
Type Parameters:
T - the type
All Implemented Interfaces:
PrivilegedAction<T>
Enclosing class:
CWClassLoader

private static class CWClassLoader.PrivilegedLoader<T>
extends Object
implements PrivilegedAction<T>

PrivilegedLoader creates a CWClassLoader if it is able to obtain java security permissions to do so.


Field Summary
private  Class<?> owningClass
           
 
Constructor Summary
CWClassLoader.PrivilegedLoader(Class<?> resourceOwner)
          Creates a privileged class loader that finds resources for the supplied class that may not be in the class' package.
 
Method Summary
 T run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owningClass

private Class<?> owningClass
Constructor Detail

CWClassLoader.PrivilegedLoader

public CWClassLoader.PrivilegedLoader(Class<?> resourceOwner)
Creates a privileged class loader that finds resources for the supplied class that may not be in the class' package. You can use this within base classes by passing getClass() to load resources for a derived class.

Parameters:
resourceOwner - is the owner of the resource
Method Detail

run

public T run()
Specified by:
run in interface PrivilegedAction<T>

Copyright ยจ 2003-2015