1 17 18 21 package org.quartz.simpl; 22 23 import org.quartz.spi.ClassLoadHelper; 24 25 import java.net.URL ; 26 import java.io.InputStream ; 27 28 40 public class InitThreadContextClassLoadHelper implements ClassLoadHelper { 41 42 43 50 51 private ClassLoader initClassLoader; 52 53 60 61 66 public void initialize() { 67 initClassLoader = Thread.currentThread().getContextClassLoader(); 68 } 69 70 73 public Class loadClass(String name) throws ClassNotFoundException { 74 return initClassLoader.loadClass(name); 75 } 76 77 83 public URL getResource(String name) { 84 return initClassLoader.getResource(name); 85 } 86 87 93 public InputStream getResourceAsStream(String name) { 94 return initClassLoader.getResourceAsStream(name); 95 } 96 } 97 | Popular Tags |