org.crosswire.common.util
Class CWClassLoader.PrivilegedLoader
java.lang.Object
org.crosswire.common.util.CWClassLoader.PrivilegedLoader
- All Implemented Interfaces:
- PrivilegedAction
- Enclosing class:
- CWClassLoader
private static class CWClassLoader.PrivilegedLoader
- extends Object
- implements PrivilegedAction
PrivilegedLoader creates a CWClassLoader if it is
able to obtain java security permissions to do so.
Constructor Summary |
CWClassLoader.PrivilegedLoader()
Creates a privleged class loader that finds resources
for the calling class that may not be in the class' package. |
CWClassLoader.PrivilegedLoader(Class resourceOwner)
Creates a privleged 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 privleged 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
CWClassLoader.PrivilegedLoader
public CWClassLoader.PrivilegedLoader()
- Creates a privleged class loader that finds resources
for the calling class that may not be in the class' package.
Use this only within classes that are directly looking up their resources.
run
public Object run()
- Specified by:
run
in interface PrivilegedAction