Package host.anzo.simon.utils
Class SimonClassLoaderHelper
java.lang.Object
host.anzo.simon.utils.SimonClassLoaderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoadergetClassLoader(Class<?> c) static ClassLoadergetClassLoader(Class<?> caller, ClassLoader specialClassLoader) Returns best possible classloader for the specifiedcallerclass.
-
Constructor Details
-
SimonClassLoaderHelper
public SimonClassLoaderHelper()
-
-
Method Details
-
getClassLoader
-
getClassLoader
Returns best possible classloader for the specifiedcallerclass. Best means:Ensure that the returning CL is the CL at the best possible bottom, so that class loading requests wil be processed from absolut bottom to the absolute top (system CL). This guarantees that no CL is cut off in CL hierarchie
If
specialClassloaderis also specified, the CL search algorith starts the search with this one, instead ofcaller- Parameters:
caller-specialClassLoader-- Returns:
- ClassLoader
-