Class SimonClassLoaderHelper

java.lang.Object
host.anzo.simon.utils.SimonClassLoaderHelper

public class SimonClassLoaderHelper extends Object
  • Constructor Details

    • SimonClassLoaderHelper

      public SimonClassLoaderHelper()
  • Method Details

    • getClassLoader

      public static ClassLoader getClassLoader(Class<?> c)
    • getClassLoader

      public static ClassLoader getClassLoader(Class<?> caller, ClassLoader specialClassLoader)
      Returns best possible classloader for the specified caller class. 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 specialClassloader is also specified, the CL search algorith starts the search with this one, instead of caller

      Parameters:
      caller -
      specialClassLoader -
      Returns:
      ClassLoader