コード例 #1
0
 /// <summary>
 /// Sets the provided classloader on the given configuration and as the thread
 /// context classloader if the classloader is not null.
 /// </summary>
 /// <param name="classLoader"/>
 /// <param name="conf"/>
 public static void SetClassLoader(ClassLoader classLoader, Configuration conf)
 {
     if (classLoader != null)
     {
         Log.Info("Setting classloader " + classLoader.GetType().FullName + " on the configuration and as the thread context classloader"
                  );
         conf.SetClassLoader(classLoader);
         Sharpen.Thread.CurrentThread().SetContextClassLoader(classLoader);
     }
 }