org.crosswire.common.util
Class CWClassLoader.PrivilegedLoader<T>
java.lang.Object
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.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owningClass
private Class<?> owningClass
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
run
public T run()
- Specified by:
run
in interface PrivilegedAction<T>