Package org.apache.batchee.container.util

## Class ClassLoaderAwareHandler

- java.lang.Object
- - org.apache.batchee.container.util.ClassLoaderAwareHandler

- All Implemented Interfaces:
    `InvocationHandler`

      public class ClassLoaderAwareHandler
      extends Object
      implements InvocationHandler

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ClassLoaderAwareHandler​(ClassLoader contextClassLoader, Object instance)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Object` | `invoke​(Object proxy, Method method, Object[] args)` |
    `static <T> T` | `makeLoaderAware​(Class<T> mainApi, Class<?>[] clazz, Object instance)` |
    `static Runnable` | `runnableLoaderAware​(Object instance)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClassLoaderAwareHandler

          public ClassLoaderAwareHandler​(ClassLoader contextClassLoader,
                                         Object instance)

  - ### Method Detail

    - #### invoke

          public Object invoke​(Object proxy,
                               Method method,
                               Object[] args)
                        throws Throwable

      Specified by:
        `invoke` in interface `InvocationHandler`
      Throws:
        `Throwable`

    - #### makeLoaderAware

          public static <T> T makeLoaderAware​(Class<T> mainApi,
                                              Class<?>[] clazz,
                                              Object instance)

    - #### runnableLoaderAware

          public static Runnable runnableLoaderAware​(Object instance)