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.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private Class<?>` | `owningClass`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

          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>`